Fractals
From GenerativeArt
(Difference between revisions)
* In chaotic systems a phase diagram will exhibit fractal behavior about a strange attractor. (To be covered later). | * In chaotic systems a phase diagram will exhibit fractal behavior about a strange attractor. (To be covered later). | ||
- | Fractals can be defined and generated by recursive functions. | + | Fractals can be defined and generated by recursive functions. For example, take the factorial function: |
- | + | <math>\sqrt{2}</math> | |
- | ====='''Non-recursive'''===== | + | |
+ | ====='''Non-recursive factorial function'''===== | ||
'''function''' FACT(m) | '''function''' FACT(m) | ||
total = 1 | total = 1 | ||
'''return''' total | '''return''' total | ||
- | ====='''Recursive'''===== | + | ====='''Recursive factorial function'''===== |
'''function''' FACT(m) | '''function''' FACT(m) | ||
'''if''' m > 1 | '''if''' m > 1 |