Logo by bib - 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: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. April 27, 2024, 05:08:50 AM


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] 2   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: Fractal patterns from decimal extraction  (Read 9830 times)
0 Members and 1 Guest are viewing this topic.
Kali
Fractal Supremo
*****
Posts: 1138


« 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:



Maybe just a curiosity, but I wanted to share it with you, folks.
« Last Edit: February 12, 2011, 03:04:54 PM by Kali » Logged

Fractal Ken
Fractal Lover
**
Posts: 246


Proud to be 2D


« Reply #1 on: February 12, 2011, 05:46:50 PM »

What a cool and creative idea!
Logged

Fortran will rise again
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #2 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

Logged

Jameses
Guest
« Reply #3 on: February 13, 2011, 08:41:50 AM »

any known correspondind UF forumlas?
Logged
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #4 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)
Logged

Kali
Fractal Supremo
*****
Posts: 1138


« Reply #5 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)



« Last Edit: February 15, 2011, 02:20:50 PM by Kali » Logged

Kali
Fractal Supremo
*****
Posts: 1138


« Reply #6 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.



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.
Logged

matsoljare
Fractal Lover
**
Posts: 215



WWW
« Reply #7 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.
Logged
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #8 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"?
Logged

Kali
Fractal Supremo
*****
Posts: 1138


« Reply #9 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)

<a href="http://www.youtube.com/v/EGfgg9hFm2E?fs=1&amp;amp;hl=es_ES&amp;amp;rel=0&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;800&quot; height=&quot;600&quot" target="_blank">http://www.youtube.com/v/EGfgg9hFm2E?fs=1&amp;amp;hl=es_ES&amp;amp;rel=0&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;800&quot; height=&quot;600&quot;</a>
« Last Edit: February 17, 2011, 04:54:19 PM by Kali » Logged

Fractal Ken
Fractal Lover
**
Posts: 246


Proud to be 2D


« Reply #10 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
« Last Edit: February 17, 2011, 06:27:53 PM by Fractal Ken » Logged

Fortran will rise again
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #11 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
« Last Edit: February 17, 2011, 08:27:23 PM by Kali » Logged

Fractal Ken
Fractal Lover
**
Posts: 246


Proud to be 2D


« Reply #12 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.
Logged

Fortran will rise again
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #13 on: February 17, 2011, 09:08:11 PM »

This is one output from the software I use (wihout using the resolution lowering method)



And this is the same with a 1E6x zoom:



Aren't this called "moire patterns"?
Logged

Fractal Ken
Fractal Lover
**
Posts: 246


Proud to be 2D


« Reply #14 on: February 17, 2011, 09:42:39 PM »

Nice example, Kali. I believe your picture does illustrate a moiré pattern (a type of aliasing).

Logged

Fortran will rise again
Pages: [1] 2   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Fractal Patterns may be key to SemiConductor Magnetism General Discussion Nahee_Enterprises 0 1798 Last post February 07, 2010, 05:25:25 AM
by Nahee_Enterprises
Very simple formula for fractal patterns (new) Theories & Research « 1 2 ... 8 9 » Kali 125 49036 Last post September 05, 2013, 06:34:30 PM
by Alef
Not so fractal related - tube triangular DE patterns (solved in 2 ways) General Discussion « 1 2 » DarkBeam 25 9572 Last post January 16, 2013, 08:48:34 PM
by knighty
Semiconductor electrons in fractal patterns Fractal News across the World Apophyster 0 1826 Last post April 14, 2013, 03:02:17 AM
by Apophyster
Decimal Animations Showcase (Rate My short Animation) Chordus 1 897 Last post January 28, 2015, 08:37:59 PM
by billtavis

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.247 seconds with 24 queries. (Pretty URLs adds 0.023s, 2q)