Title: Torn Asunder Post by: Fractal Ken on June 28, 2013, 07:44:02 PM (https://s3.amazonaws.com/fractal_images/TornAsunder1024.jpg)
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. Title: Re: Torn Asunder Post by: Alef 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. Title: Re: Torn Asunder Post by: Fractal Ken 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: (https://s3.amazonaws.com/fractal_images/trifunc.png) Title: Re: Torn Asunder Post by: Dinkydau on June 29, 2013, 11:42:33 PM Oh, it's just that. I was confused too.
Title: Re: Torn Asunder Post by: matsoljare 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) Title: Re: Torn Asunder Post by: Fractal Ken 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). Title: Re: Torn Asunder Post by: Alef 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. ::)
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 Title: Re: Torn Asunder Post by: Fractal Ken 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. ::) 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 Title: Re: Torn Asunder Post by: Aexion 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 :) Title: Re: Torn Asunder Post by: cKleinhuis 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 :) ehrm, @aexion, you dont have an animation of a flame or a mandelbulb showing the fun you propose ??? you know i am LOVING such fun! Title: Re: Torn Asunder Post by: Fractal Ken 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. :nono: Title: Re: Torn Asunder Post by: Aexion 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 ??? Thanks!, I think that I have some renders here, just let me find them.. :)you know i am LOVING such fun! Nice idea, but calls to sin and arcsin for evaluating a piecewise linear function? Don't let your computer science professors see this. :nono: 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.. ;D Title: Re: Torn Asunder Post by: Fractal Ken 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. Title: Re: Torn Asunder Post by: Alef 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/Category:Special_functions) http://en.wikipedia.org/wiki/List_of_mathematical_functions (http://en.wikipedia.org/wiki/List_of_mathematical_functions) And a wikipedia alsou uses sine arcsine. http://en.wikipedia.org/wiki/Triangle_wave (http://en.wikipedia.org/wiki/Triangle_wave) (http://upload.wikimedia.org/math/2/2/d/22d2c3559baad2f41b64b7a337cafc31.png) |