Step 3: Use new tool and iterate
Finally, we use our new tool
Grow()
and the command IterationList() to apply recursion.
Warning: In this part, GeoGebra online is slow. It is better to use GeoGebra classic 5 or GeoGebra 6 for desktop.GGB Scripting - One level per iteration using Iteration() command
L1 = f
L2 = Iteration(Flatten(Zip(Grow(s), s, level)), level, {{f}}, 1)
L3 = Iteration(Flatten(Zip(Grow(s), s, level)), level, {{f}}, 2)
L4 = Iteration(Flatten(Zip(Grow(s), s, level)), level, {{f}}, 3)
# etc...
GGB Scripting - All levels at once
ListAll = IterationList(Flatten(Zip(Grow(s), s, level)), level, {{f}}, 8)
Setp 3: Demo plotting all levels at once
If you want, share your tree(s) with me or maybe other variations to create other kind of fractals. Just send me a tweet @jcponcemath
Here are are a few examples:
Koch snowflake by @SparksMaths
3D tree by Bernat Ancochea