Hello!
I am new with Mathematica and I am constructing a Mandelbulb fractal with Mathematica but when I Graph it, it won’t graph it as how other websites show the Mandelbulb. Let me give you some examples:
These are with power=8:
These are with power=2:
CODE
Mandelbulb[c_] :=
Module[{o = 1, n = 8, newx = x, newy = y, newz = z,
r = Sqrt[x*x + y*y + z*z]},
While[o < 400 &&
r <= 2,
theta = ArcTan[Sqrt[newx*newx + newy*newy], newz];
phi = ArcTan[newy, newx];
newx = r^n*Sin[theta*n]*Cos[phi*n] + x;
newy = r^n*Sin[theta*n]*Sin[phi*n] + y;
newz = r^n*Cos[theta*n] + z;
r = Sqrt[newx*newx + newy*newy + newz*newz];
o = o + 1];
o]
DensityPlot3D[Mandelbulb[x + y*I], {x, -1.5, 1.5}, {y, -1.5, 1.5}, {z, -1.5, 1.5}]
My guess is that I am using DenityPlot3D and I can be using a better graphing command
Thank you very much for your time!!!







