Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #3913 > unrolled thread

Re: mandelbrot in version 7 & Ruskeepaa version 3

Started byCurtis Osterhoudt <cfo@lanl.gov>
First post2011-07-22 23:52 +0000
Last post2011-07-22 23:52 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: mandelbrot in version 7 & Ruskeepaa version 3 Curtis Osterhoudt <cfo@lanl.gov> - 2011-07-22 23:52 +0000

#3913 — Re: mandelbrot in version 7 & Ruskeepaa version 3

FromCurtis Osterhoudt <cfo@lanl.gov>
Date2011-07-22 23:52 +0000
SubjectRe: mandelbrot in version 7 & Ruskeepaa version 3
Message-ID<j0d2ft$s1r$1@smc.vnet.net>
Looks as though the "Iy" in the code needs to be I (that's a capital aye) times why: I*y. If there wasn't a space in the original code, Mathematica interprets it as a new, two-character symbol, not the product of the imaginary basis times y. 

   Hope that helps!

 

On Thursday, July 21, 2011 19:09:03 DaleJenk wrote:
> 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.
>  
> 
> 
> 

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web