firstfracverb - Fractals using iterated function systems,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Fractals using iterated function systems, with affine transformations ACCESS July 2001 > restart:#fractals use a lot of memory > Digits:=4: #number of significant digits - this will #make computations go faster without sacrificing #visual accuracy - because IFS’s are self correcting. > with(plots): #we want to be able to see our fractals Warning, the name changecoords has been redefined The next procedure will take a point P=[x,y]) in the plane and let us compute its image under an affine transformation. We use the same letters for the transformation parameters as we did in the class notes: = AFFINE1 x y + ab cd x y e f > AFFINE1:=proc(X,a,b,c,d,e,f) RETURN(evalf([a*X[1]+b*X[2]+e, c*X[1]+d*X[2]+f])); end: > You should check that these are the transformations for the Sierpinski triangle > f1:=P->AFFINE1(P,.5,0,0,.5,.25,.5); f2:=P->AFFINE1(P,.5,0,0,.5,.5,0); f3:=P->AFFINE1(P,.5,0,0,.5,0,0);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

firstfracverb - Fractals using iterated function systems,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online