Ask Experts Questions for FREE Help !
Ask
    Antti's Avatar
    Antti Posts: 1, Reputation: 1
    New Member
     
    #1

    Oct 21, 2010, 05:25 AM
    Fractals using Mathematica
    I'd like to get fractals out of these functions:

    f(z) = (1 + (-1)^z) \frac{z}{4} + (1 - (-1)^z) \frac{3 z + 1}{2}

    g(z) = \frac{z}{4} (1 + cos[\pi z]) + \frac{3 z + 1}{16} (1 - cos[\pi z]) (3 - \sqrt[2] cos[(2 z - 1) \frac{\pi}{4}])

    (z) = \frac{1}{4} (2 + 7 z - (2 + 5 z) cos[\pi z])

    What I got now looks like this (for one of the equations), and though it can be used to generate some pretty pictures it isn't quite what I want (need). What I would like to see is something like this: Julia Set -- from Wolfram MathWorld

    Code:
    collatz = Compile[{{z, _Complex}}, 
    Module[{x = z, i = 0, s = 10.^5, vic = 10.^5 + 0.0 I, maxit = 100}, 
    While[i < maxit && Abs[x] < s, i++; 
    x = 1/4 (2 + 7 x - (2 + 5 x) Cos[\[Pi] x]); 
    If[Abs[x] < Abs[vic], vic = Abs[x], vic];]; vic]] 
    
    sol = Table[ 
    collatz[x + I y], {x, 1.5, 2.5, .003}, {y, -0.5, 0.5, .003}] // Chop; 
    
    ListDensityPlot[sol, Mesh -> False, ColorFunction -> (Hue)]
    Any help would be highly appreciated.

Check out some similar questions!

Please some one help me, how to plot two synchronization chaos signal by Mathematica? [ 0 Answers ]

I want to plot two chaotic signal, show out they are synchronization or not, I use Lorenz system, use Mathematica to do that.


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.