Logo by Trifox - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. April 19, 2024, 04:47:44 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Torn Asunder  (Read 987 times)
0 Members and 1 Guest are viewing this topic.
Fractal Ken
Fractal Lover
**
Posts: 246


Proud to be 2D


« on: June 28, 2013, 07:44:02 PM »



Strange attractor
xn+1 = tri(1.77xn + 3.11) + tri(-2.67yn + 1.63)
yn+1 = tri(1.31xn + 0.85) + tri(0.84yn - 1.40)

tri is a periodic triangle function. I formed it (conceptually) by connecting the extrema of the sine function with line segments.
Logged

Fortran will rise again
Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #1 on: June 29, 2013, 07:31:10 PM »

What is triangle function? Haven't heard that thing.

But nice triangular crystals in pseudo 3D. This aren't artistic, just pink background, but looks having artistic potential.
Logged

fractal catalisator
Fractal Ken
Fractal Lover
**
Posts: 246


Proud to be 2D


« Reply #2 on: June 29, 2013, 09:07:00 PM »

What is triangle function? Haven't heard that thing.

I just meant this pattern repeated from -Infinity to +Infinity on the horizontal axis:

Logged

Fortran will rise again
Dinkydau
Fractal Senior
******
Posts: 1616



WWW
« Reply #3 on: June 29, 2013, 11:42:33 PM »

Oh, it's just that. I was confused too.
Logged

matsoljare
Fractal Lover
**
Posts: 215



WWW
« Reply #4 on: June 30, 2013, 09:32:11 PM »

I've used the triangle function for various 2d images before, here's how i define it:

abs((x-int(x))-0.5)
Logged
Fractal Ken
Fractal Lover
**
Posts: 246


Proud to be 2D


« Reply #5 on: June 30, 2013, 10:41:14 PM »

I've used the triangle function for various 2d images before, here's how i define it:

abs((x-int(x))-0.5)

Neat! That's very succinct and gives the right shape for positive x. At least on gfortran, the int function behaves in a funny way for negative x; for example, int(-1.9) = -1. So I'd need to use abs(abs(x-int(x))-0.5).
Logged

Fortran will rise again
Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #6 on: August 15, 2013, 03:36:31 PM »

But then triangle function is not a abs(abs(x-int(x))-0.5), becouse resulting maximal value of this thing is 0.5, quite bad for colour transfer function.  :smiley

More something like this, then throught it will have different period and all positive (good for colour function):
abs(abs(x*0.5-int(x*0.5))-0.5)*2
Logged

fractal catalisator
Fractal Ken
Fractal Lover
**
Posts: 246


Proud to be 2D


« Reply #7 on: August 15, 2013, 05:45:53 PM »

But then triangle function is not a abs(abs(x-int(x))-0.5), becouse resulting maximal value of this thing is 0.5, quite bad for colour transfer function.  :smiley

True. Notice I wrote "gives the right shape for positive x" rather than "gives the right result for positive x" in answering matsoIjare's suggestion. The following adaptation reproduces the graph from my earlier post:
v = x/(2*PI) - 1/4
tri = 4*abs(abs(v - int(v)) - 1/2) - 1


Logged

Fortran will rise again
Aexion
Conqueror
*******
Posts: 116


The Fractal Hermit


WWW
« Reply #8 on: August 15, 2013, 10:38:32 PM »

Hello,

Try this:
f(x)=asin(sin(x))*(2/pi)

http://aexion.deviantart.com/art/Sin-268786434

  smiley
Logged

Fractals all the way..
Incendia for 3D Fractals
Aural for Musical Fractals
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #9 on: August 15, 2013, 10:41:15 PM »

Hello,

Try this:
f(x)=asin(sin(x))*(2/pi)

http://aexion.deviantart.com/art/Sin-268786434

  smiley

ehrm,  @aexion, you dont have an animation of a flame or a mandelbulb showing the fun you propose huh?
you know i am LOVING such fun!
Logged

---

divide and conquer - iterate and rule - chaos is No random!
Fractal Ken
Fractal Lover
**
Posts: 246


Proud to be 2D


« Reply #10 on: August 15, 2013, 11:45:14 PM »

Try this:
f(x)=asin(sin(x))*(2/pi)

Nice idea, but calls to sin and arcsin for evaluating a piecewise linear function? Don't let your computer science professors see this. No, No, No...
Logged

Fortran will rise again
Aexion
Conqueror
*******
Posts: 116


The Fractal Hermit


WWW
« Reply #11 on: August 16, 2013, 03:51:20 PM »


ehrm,  @aexion, you dont have an animation of a flame or a mandelbulb showing the fun you propose huh?
you know i am LOVING such fun!
Thanks!, I think that I have some renders here, just let me find them..  smiley

Nice idea, but calls to sin and arcsin for evaluating a piecewise linear function? Don't let your computer science professors see this. No, No, No...

Perhaps.. but there's some hidden art on it.. lets see:
f(x)=asin(sin(x))*(2/pi)
if you want a cosine-like triangular, it is:
f(x)=asin(cos(x))*(2/pi)

But what happens if you change it a bit (like adding another sine), so you get:

f(x)=asin(sin(x+sin(x*4)))*(2/pi)

You get an interesting cyclical function, like the sine and the triangular function, but with several bumps more..
the "cosine version" is:
f(x)=asin(cos(x+sin(x*4)))*(2/pi)

Now use it on your favorite fractal that has sines and cosines (replacing them with these versions) and you will get some interesting fun.. 
grin



* SinSin.jpg (73.82 KB, 600x500 - viewed 153 times.)
Logged

Fractals all the way..
Incendia for 3D Fractals
Aural for Musical Fractals
Fractal Ken
Fractal Lover
**
Posts: 246


Proud to be 2D


« Reply #12 on: August 16, 2013, 11:30:46 PM »

But what happens if you change it a bit (like adding another sine), so you get:

f(x)=asin(sin(x+sin(x*4)))*(2/pi)

You get an interesting cyclical function, like the sine and the triangular function, but with several bumps more..
the "cosine version" is:
f(x)=asin(cos(x+sin(x*4)))*(2/pi)

Now use it on your favorite fractal that has sines and cosines (replacing them with these versions) and you will get some interesting fun.. 

Cool! I'll have to play with those formulas.
Logged

Fortran will rise again
Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #13 on: August 18, 2013, 06:43:23 PM »

I was searching wikipedia for functions, they had something like 'least used mathematical functions' or something like that.
There were some sine waves on sine waves like this thing with two sines. So far from lest known functions I found usefull haversine and sigmoid functions, but triangle function alsou worked quite nice as colour transfer function. 2 sines and arcine could be a bit too slow.
There should be lots of:
http://en.wikipedia.org/wiki/Category:Special_functions
http://en.wikipedia.org/wiki/List_of_mathematical_functions
And a wikipedia alsou uses sine arcsine.
http://en.wikipedia.org/wiki/Triangle_wave
« Last Edit: August 18, 2013, 06:46:57 PM by Alef » Logged

fractal catalisator
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Torn Mandelbulb3D Gallery 1Bryan1 0 464 Last post June 02, 2016, 08:29:11 AM
by 1Bryan1

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.133 seconds with 24 queries. (Pretty URLs adds 0.008s, 2q)