Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a nested branching model
ResourceFunction["NestedBranching"][b,n] generates a branching model of depth n specified by the rule b, a list of complex numbers representing the result of the first step. |
"Graphic" | a visual representation of the model turned by 90° to face upward |
"Points" | a nested list representing the points at each layer |
"EndPoints" | the endpoints of the model |
"Lines" | a list of lists of length two representing the lines with no rotation or conversion from complex numbers |
Get six layers of a branching model with two branches:
In[1]:= |
Out[1]= |
Retrieve the points instead of a graphic:
In[2]:= |
Out[2]= |
Visualize the points using ComplexListPlot:
In[3]:= |
Out[3]= |
The endpoints are just the last list in the points:
In[4]:= |
Out[4]= |
The lines can also be retrieved:
In[5]:= |
Out[5]= |
The model works for any number of branches and does not have to be symmetric:
In[6]:= |
Out[6]= |
A simple Manipulate allows for the manual manipulation of the real and imaginary parts of each value in b:
In[7]:= |
Out[7]= |
This work is licensed under a Creative Commons Attribution 4.0 International License