Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fractals > affine IFS defi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 172 of 217
Post > Topic >>

affine IFS definition of Rauzy

by Roger Bagula <rlbagula@[EMAIL PROTECTED] > Jul 27, 2007 at 08:32 AM

I had some trouble at first  getting old definitions of fractal tiles 
into the new
fast color IFS, but I set up an affine matrix and fed in the results.
I tested it here on the Rauzy tile IFS.
It appears to be  very good in most cases
that I've tested so far.

Clear[f, dlst, pt, cr, ptlst]
dlst = Table[ Random[Integer, {1, 3}], {n, 20000}];
rotate[theta_] := {{Cos[theta], -Sin[theta]}, {Sin[theta], Cos[theta]}};
NSolve[x^3 - x^2 - x - 1 == 0, x]
an = Table[Arg[x^n] /. NSolve[x^3 - x^2 - x - 1 == 0, x][[1]], {n, 1, 3}];
M = Table[(Abs[x^n] /. NSolve[x^3 - x^2 - x - 1 == 0, x][[1]])*rotate[
      an[[n]]], {n, 1, 3}];
in = Table[{Re[x^n] /. NSolve[
    x^3 - x^2 - x - 1 == 0, x][[1]], Im[x^
        n] /. NSolve[x^3 - x^2 - x - 1 == 0, x][[1]]}, {n, 1, 3}];
f[j_, {x_, y_}] := M[[j]]. {x, y} + in[[j]]

pt = {0.5, 0.5};

cr[n_] = If[n - 1 ==
            0, RGBColor[0, 0, 1],
                 If[n - 2 == 0, RGBColor[0, 1, 0], If[n - 3 ==
                0, RGBColor[1, 0, 0], RGBColor[0, 0, 0]]]];
ptlst = Table[{cr[dlst[[j]]], Point[pt = f[dlst[[j]], Sequence[pt]]]},
   {j, Length[dlst]}];

Show[Graphics[Join[{PointSize[.001]}, ptlst]], AspectRatio ->
        Automatic, PlotRange -> All]


Respectfully, Roger L. Bagula
 11759Waterhill Road, Lakeside,Ca 92040-2905,tel: 619-5610814 
:http://www.geocities.com/rlbagulatftn/Index.html
alternative email: rlbagula@[EMAIL PROTECTED]

 




 2 Posts in Topic:
fast fudge flake with color in Mathematica
Roger Bagula <rlbagula  2007-07-26 11:57:20 
affine IFS definition of Rauzy
Roger Bagula <rlbagula  2007-07-27 08:32:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 21:06:56 CDT 2008.