Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #3904
| From | "DaleJenk" <dale.jenkins8@deletegooglemail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | mandelbrot in version 7 & Ruskeepaa version 3 |
| Date | 2011-07-22 01:15 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j0aivf$ghq$1@smc.vnet.net> (permalink) |
I bought Mathematica 7 Home Edition last year. I'm trying to plot the
Mandelbrot Set following the instructions in Ruskeepaa's Mathematica
Navigator version 3. I'm getting an error message.
Here's what I am introducing:
mandelbrot = Compile[{{c,_Complex}},
Module[{z=0+0I, n=0}, While[Abs[z]<2 && n<50, z=z^2+c; n++]; n]];
DensityPlot[mandelbrot[x+Iy], {x,-2,1},{y,-1.5,1.5}, PlotPoints->200,
Mesh->False, FrameTicks->{{-2,-1,0,1},{-1,0,1}}]; //Timing
I get the message:
CompiledFunction::cfsa:
Argument -1.99998 + Iy at position 1 should be a machine-size complex
number.
Where am I going wrong?
Thanks.
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
mandelbrot in version 7 & Ruskeepaa version 3 "DaleJenk" <dale.jenkins8@deletegooglemail.com> - 2011-07-22 01:15 +0000
Re: mandelbrot in version 7 & Ruskeepaa version 3 "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-07-22 07:42 +0000
Re: mandelbrot in version 7 & Ruskeepaa version 3 "DaleJenk" <dale.jenkins8@deletegooglemail.com> - 2011-07-22 23:56 +0000
Re: mandelbrot in version 7 & Ruskeepaa version 3 "Kevin J. McCann" <kjm@KevinMcCann.com> - 2011-07-22 23:56 +0000
csiph-web