Fractale de  Searhouse


Algorithme

FNg (x) = SIN(x + SIN(3 * x))

Pick aa [e.g. 0.9]

Pick bb [e.g. 0.8]

Pick cc [e.g. 0.7]

Pick dd [e.g. 0.6]

Pick ee [e.g. 0.05]

Pick Lambda0 [e.g. 0.2 - 1.2]

ee = RND * .2

FOR ii = -1 TO 1 STEP .5

FOR jj = -1 TO 1 STEP .1

xx = ii

xxadj = xx - 2

yy = jj

yyadj = yy - 2

lambda = Lambda0

FOR i = 1 TO 30 STEP .5

yyadj = yy - 2

xxadj = xx - 2

Plot xxadj, yyadj

xold = xx

yold = yy

xx = ee * i + (aa * xold - lambda * FNg(cc * yold))

yy = ee * i + (bb * yold - lambda * FNg(dd * xold))

NEXT

NEXT

NEXT


[Image]