Title: Fractal patterns from decimal extraction Post by: Kali on February 12, 2011, 02:49:08 PM I suppose this is already known, but I discover it by myself:
If you take a grid of points from a 2d plane (just like you do to evaluate a set of points in a escape-time fractal), and then, without using any formula at all, just extracting the decimals from each x and y value to evaluate them, you get a fractal pattern. e.g. for each point (x,y), iterate: p=p+1 // the decimal place to extract and this is a method for extracting a decimal at position 'p' and making it a positive 1 digit integer: xx=abs(floor(x*(10^p))-floor(x*(10^p)/10)*10) yy=abs(floor(y*(10^p))-floor(y*(10^p)/10)*10) (use floor() or int() or whatever that cuts out the decimal part) then set up a bailout condition like this: xx+yy>10 and coloring based on escape time, you get this Sierpinski-like pattern: (http://img8.imageshack.us/img8/7154/sierpinskitriangles.jpg) Maybe just a curiosity, but I wanted to share it with you, folks. Title: Re: Fractal patterns from decimal extraction Post by: Fractal Ken on February 12, 2011, 05:46:50 PM What a cool and creative idea!
Title: Re: Fractal patterns from decimal extraction Post by: Kali on February 12, 2011, 09:10:31 PM Thanks, Ken
This one is made using only absolute values of x,y and iterating z=z+xx-yy (http://img23.imageshack.us/img23/3091/fractalpattern.jpg) Title: Re: Fractal patterns from decimal extraction Post by: Jameses on February 13, 2011, 08:41:50 AM any known correspondind UF forumlas?
Title: Re: Fractal patterns from decimal extraction Post by: Kali on February 13, 2011, 12:51:46 PM any known correspondind UF forumlas? This is an example code for UF: decimalextraction { init: float x=real(#pixel) float y=imag(#pixel) int p=0 loop: p=p+1 xx=abs(trunc(x*(10^p))-trunc(x*(10^p)/10)*10) yy=abs(trunc(y*(10^p))-trunc(y*(10^p)/10)*10) z=xx+yy ; (or z=z+xx-yy for the second image I posted) bailout: |z|<100 } (Use multi-pass linear drawing method and turn off periodicity checking) Title: Re: Fractal patterns from decimal extraction Post by: Kali on February 15, 2011, 05:31:59 AM For the next one I used the fractional part from the modulus of x,y (sqrt(x*x+y*y)) and then I colored it based on the decimal digit at 8th place.
(The borders were darkened by me for a better visual impact) (http://img403.imageshack.us/img403/1147/mandalabrot.jpg) Title: Re: Fractal patterns from decimal extraction Post by: Kali on February 16, 2011, 04:38:31 AM A different coloring method, and with scaled up pixels (that means I lowered the resolution), to see the patterns better.
(http://img821.imageshack.us/img821/6069/fractionalpattern501.jpg) To change the resolution of the x-y values in UF, I used: newx=trunc(x*res)/res newy=trunc(y*res)/res For higher values of 'res', more resolution. The patterns also change when you change the resolution, because new values have different fractional parts. I'll make a simple movie to show this. Title: Re: Fractal patterns from decimal extraction Post by: matsoljare on February 16, 2011, 03:14:14 PM You might get a better result if you use a lower base, such as 2 or 3.
Title: Re: Fractal patterns from decimal extraction Post by: Kali on February 16, 2011, 03:36:42 PM Do you mean in the "10^pos" part?
One thing I'm not sure is if I'm calling this in the proper way. I mean "decimal extraction", because in spanish we refer to the digits of the fractional part of a number as "decimals". Perhaps in english I must say that I'm extracting the "fractional digits"? Title: Re: Fractal patterns from decimal extraction Post by: Kali on February 17, 2011, 04:43:23 PM This is a short movie of the changing patterns... note the variety and unique design of each one.
I think there's an important concept behind this, but I don't know yet what it is, I'm just following my intuition. I have some ideas but I must research further before posting anything. I didn't want a boring silent video, so the music is from my friends of Unsocial THC Syrah, part of their song "No Domino" (great song) http://www.youtube.com/v/EGfgg9hFm2E?fs=1&hl=es_ES&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="800" height="600" Title: Re: Fractal patterns from decimal extraction Post by: Fractal Ken on February 17, 2011, 05:47:15 PM Kali, cool movie!
One thing I'm not sure is if I'm calling this in the proper way. I mean "decimal extraction", because in spanish we refer to the digits of the fractional part of a number as "decimals". Perhaps in english I must say that I'm extracting the "fractional digits"? I think decimal extraction is a good name as long as you're using base 10.[Edit: Removed an ill-conceived comment about aliasing.] Regards, Ken Title: Re: Fractal patterns from decimal extraction Post by: Kali on February 17, 2011, 08:09:34 PM Ken,
I was about to answer to your comment about aliasing, as I'm using the forum's setting to receive the replies on my email. As for your edit, seems that you got it... The last patterns I posted (not the first ones), are in fact, sort of aliasing patterns of concentric circles that becomes thinner as the decimal position to be evaluated moves to the right. In a *perfect* ideal rendering system (I mean infinite resolution), the patterns won't appear no matter what decimal position is chosen, just concentric circles with different spacings between them. So the patterns are defined by the resolution in the scanning for x-y values of the plane, and the decimal position evaluated. There's still something in all this that have me thinking... Thank you for your comments Title: Re: Fractal patterns from decimal extraction Post by: Fractal Ken on February 17, 2011, 08:44:58 PM Kali, what you've written makes sense. When I saw your movie, I was reminded of aliasing artifacts, which are usually undesirable. However, aliasing seems to be the source of your interesting patterns in this case.
Title: Re: Fractal patterns from decimal extraction Post by: Kali on February 17, 2011, 09:08:11 PM This is one output from the software I use (wihout using the resolution lowering method)
(http://img607.imageshack.us/img607/9465/aliasr.jpg) And this is the same with a 1E6x zoom: (http://img688.imageshack.us/img688/6708/antialias.jpg) Aren't this called "moire patterns"? Title: Re: Fractal patterns from decimal extraction Post by: Fractal Ken on February 17, 2011, 09:42:39 PM Nice example, Kali. I believe your picture does illustrate a moiré pattern (http://en.wikipedia.org/wiki/Moir%C3%A9_pattern) (a type of aliasing (http://en.wikipedia.org/wiki/Aliasing)).
Title: Re: Fractal patterns from decimal extraction Post by: tit_toinou on April 20, 2012, 05:52:48 PM I've also discovered the same patterns from the last images (and the video) when iterating by error the formula z->z^2/z (which is supposed to equals z). I don't understand theses patterns. The "concentric circles" thing might be an explanation.. |