MandelImage | R Documentation |
'MandelImage' returns two dimensional array representing escape values from on the square region in complex plane. Escape values (which measures the number of iteration before the lenght of the complex value reaches to 2.)
MandelImage(imageN, centre, L)
imageN |
Number of pixels to equally space division of one side if the square region. |
centre |
A complex number that determines the centre of the square region. |
L |
A side length of the square region on the complex plane. |
Mandelbrot set is defined as the set of initial complex values where the z = z^2 +z_0 does not diverge to infinity. Initial value for the map is taken to be zero and z_0 is the complex coordinate.
Returns a matrix.
Returns a matrix
Mehmet Suzen <mehmet.suzen@physics.org>
The Fractal Geometry of Nature, Benoit B. Mandelbrot, W.H.Freeman & Co Ltd (18 Nov 1982)
JuliaImage
# png image
imageN <- 5; # increase this to see image
centre <- 0.0
L <- 4.0
image<-MandelImage(imageN,centre,L);
#file <- "mandelbrot1.png"
# writePNG(image,file); # possible visualisation
# Closer lookup to set
imageN <- 5;
centre <- -0.5
L <- 2.0
image<-MandelImage(imageN,centre,L);
# file <- "mandelbrot.png"
#writePNG(image,file); # possible visualisation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.