Fractals[EscapeTime]
Mandelbrot
Mandelbrot fractal generator
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Mandelbrot( n, zbl, zur )
Mandelbrot( n, zbl, zur, opts )
n
-
positive integer; specifies the dimensions of the square Array output
zbl
complex(realcons); the bottom left corner of a box in the complex plane
zur
complex(realcons); the upper right corner of a box in the complex plane
opts
(optional) keyword options of the form opt=value where opt and value are described below
output : keyword option of the form output=value where value is a name or list of names denoting the returned Array image(s). The accepted names are layer1, layer2, color, or raw. The default value is color.
iterationlimit : keyword option of the form iterationlimit=value where value is a positive integer specifying the number of iterations the formula is applied. The default value is 25.
cutoff : keyword option of the form cutoff=value where value is positive and of type realcons. The iterative process is stopped for each complex input point when the absolute value exceeds the cutoff value. The default value is 100.0.
container : An n-by-n-by-2 Array with datatype=float[8] and order=Fortran_order used in-place to store the raw data.
The Mandelbrot command generates Array images which provide a visualization of the Mandelbrot set. The entries of the image are shaded according to the behavior of complex input points under a particular iterative rational map. Taking an initial point z[0]=0+0*I then for each complex input point c a sequence of points z[i] are computed until abs(z[i]) exceeds the cutoff value (ie. escapes).
zi=zi−12+c,z0=0
For each entry point in the designated complex box the iterative process is repeated until either the iteration limit or the cutoff value is exceeded.
The two-dimensional grayscale Array image returned by supplying the option output=layer1 contains data denoting the number of iterations required for each entry to escape. The grayscale image returned by supplying the option output=layer2 contains the absolute values of the final values for entries which escape. For either layer the real data is scaled to 0.0 .. 1.0 before being returned as an image.
The three-dimensional color Array image returned by supplying the option output=color contains data where the three layers corresponding to red, green, and blue have been computed using the raw escape data.
The three-dimensional Array returned by supplying the option output=raw contains the unscaled data of layer1 and layer2. This Array can be used to generate a customized color image using the Colorize command.
with⁡Fractals:-EscapeTime
BurningShip,Colorize,HSVColorize,Julia,LColorize,Lyapunov,Mandelbrot,Newton
with⁡ImageTools:
M≔Mandelbrot⁡500,−2.0−1.35⁢I,0.7+1.35⁢I
Embed⁡M
Embed⁡Mandelbrot⁡500,−2.0−1.35⁢I,0.7+1.35⁢I,output=layer1
Embed⁡Mandelbrot⁡200,−2.0−1.35⁢I,0.7+1.35⁢I,iterationlimit=10,output=layer1,Mandelbrot⁡200,−2.0−1.35⁢I,0.7+1.35⁢I,iterationlimit=25,output=layer1,Mandelbrot⁡200,−2.0−1.35⁢I,0.7+1.35⁢I,iterationlimit=125,output=layer1
Embed⁡Mandelbrot⁡500,−0.1515+1.032⁢I,−0.1575+1.043⁢I,iterationlimit=300,cutoff=50.0
Embed⁡Mandelbrot⁡500,−2.0−1.35⁢I,0.7+1.35⁢I,output=layer2
Embed⁡Mandelbrot⁡200,−2.0−1.35⁢I,0.7+1.35⁢I,cutoff=4.0,output=layer2,Mandelbrot⁡200,−2.0−1.35⁢I,0.7+1.35⁢I,cutoff=100.0,output=layer2,Mandelbrot⁡200,−2.0−1.35⁢I,0.7+1.35⁢I,cutoff=10000.0,output=layer2
R≔Array⁡1..500,1..500,1..2,datatype=float8:
Mandelbrot⁡500,−0.1025+0.95⁢I,−0.095+0.96⁢I,iterationlimit=200,cutoff=50.0,output=raw,container=R:
Embed⁡FitIntensity⁡R..,..,1,FitIntensity⁡R..,..,2
P≔Colorize⁡500,R,Array⁡11,3,2,datatype=integer4,Array⁡0.256,0.859,0.256,datatype=float8,rgb=0,mode=4,layer=2:
Embed⁡P
The Fractals:-EscapeTime:-Mandelbrot command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
See Also
Fractals
Download Help Document