Back to home page

The Tree

A random number  r is generated   0  ≤ r ≤ 1

Start with x=0.5 and y= 0.0,  and use the linear equations:

if  r < A                   xn = 0.05*x ,               yn = 0.6*y

if  A <  r  <   B        xn = 0.05*x  ,              yn = -0.5*y+1.0

if  B <  r  <   C        xn = 0.46*x-0.32*y ,    yn = 0.39*x+0.38*y+0.6

if  C <  r <    D        xn = 0.47*x-0.15*y  ,   yn = 0.17*x+0.42*y+1.1

 if  D <  r <   E        xn = 0.43*x+0.28*y  ,   yn = -0.25*x+0.45*y+1.0

 else                        xn = 0.42*x+0.26*y ,   yn = -0.35*x+0.31*y+0.7

To see the effects of changing the probabilities for the equations:

Select A  with west slider

Select B, C, and  D with north sliders

Select E with east slider

And press start to see the new tree.