Posted on 02/10/2010 7:21:27 PM PST by Talisker
Can you post the equation?
The following is from a referred equation link in the article:
double pi=3.14159265;
double r = sqrt(x*x + y*y + z*z );
double yang = atan2(sqrt(x*x + y*y) , z );
double zang = atan2(y , x);
newx = (r*r) * sin( yang*2 + 0.5*pi ) * cos(zang*2 +pi);
newy = (r*r) * sin( yang*2 + 0.5*pi ) * sin(zang*2 +pi);
newz = (r*r) * cos( yang*2 + 0.5*pi );
Since in the standard Mandelbrot forumla, the only multiplication is the number multiplied by itself (the square), that's why there's only x, y and z in the above function, and not x2, y2, and z2 aswell. Hope that makes sense.
The addition function for these 3D numbers is as expected:
newx = x1 + x2;
newy = y1 + y2;
newz = z1 + z2;
The main Mandelbrot formula stays the same ("a" and "point" are 3D numbers of course - X, Y and Z):
add( multiply(a,a) , point).
Oh and the escape condition is slightly extended over the 2D version like so:
while (x*x + y*y + z*z < 2.0)
Looks like something a mathematical knitter might tackle:
http://www.toroidalsnark.net/mathknit.html
wow that is over my head! LOL
,_-=(!7(7/zs_. .=' ' .`/,/!(=)Zm. .._,,._.. ,-`- `,\ ` -` -`\\7//WW. ,v=~/.-,-\- -!|V-s.)iT-|s|\-.' `///mK%. v!`i!-.e]-g`bT/i(/[=.Z/m)K(YNYi.. /-]i44M. v`/,`|v]-DvLcfZ/eV/iDLN\D/ZK@%8W[Z.. `/d!Z8m //,c\(2(X/NYNY8]ZZ/bZd\()/\7WY%WKKW) -'|(][%4. ,\\i\c(e)WX@WKKZKDKWMZ8(b5/ZK8]Z7%ffVM, -.Y!bNMi /-iit5N)KWG%%8%%%%W8%ZWM(8YZvD)XN(@. [ \]!/GXW[ / ))G8\NMN%W%%%%%%%%%%8KK@WZKYK*ZG5KMi,- vi[NZGM[ i\!(44Y8K%8%%%**~YZYZ@%%%%%4KWZ/PKN)ZDZ7 c=//WZK%! ,\v\YtMZW8W%%f`,`.t/bNZZK%%W%%ZXb*K(K5DZ -c\\/KM48 -|c5PbM4DDW%f v./c\[tMY8W%PMW%D@KW)Gbf -/(=ZZKM8[ 2(N8YXWK85@K -'c|K4/KKK%@ V%@@WD8e~ .//ct)8ZK%8` =)b%]Nd)@KM[ !'\cG!iWYK%%| !M@KZf -c\))ZDKW%` YYKWZGNM4/Pb '-VscP4]b@W% 'Mf` -L\///KM(%W! !KKW4ZK/W7)Z. '/cttbY)DKW% -` .',\v)K(5KW%%f 'W)KWKZZg)Z2/,!/L(-DYYb54% ,,`, -\-/v(((KK5WW%f \M4NDDKZZ(e!/\7vNTtZd)8\Mi!\-,-/i-v((tKNGN%W%% 'M8M88(Zd))///((|D\tDY\\KK-`/-i(=)KtNNN@W%%%@%[ !8%@KW5KKN4///s(\Pd!ROBY8/=2(/4ZdzKD%K%%%M8@%% '%%%W%dGNtPK(c\/2\[Z(ttNYZ2NZW8W8K%%%%YKM%M%%. *%%W%GW5@/%!e]_tZdY()v)ZXMZW%W%%%*5Y]K%ZK%8[ '*%%%%8%8WK\)[/ZmZ/Zi]!/M%%%%@f\ \Y/NNMK%%! 'VM%%%%W%WN5Z/Gt5/b)((cV@f` - |cZbMKW%%| 'V*M%%%WZ/ZG\t5((+)L\'-,,/ -)X(NWW%% `~`MZ/DZGNZG5(((\, ,t\\Z)KW%@ 'M8K%8GN8\5(5///]i!v\K)85W%%f YWWKKKKWZ8G54X/GGMeK@WM8%@ !M8%8%48WG@KWYbW%WWW%%%@ VM%WKWK%8K%%8WWWW%%%@` ~*%%%%%%W%%%%%%%@~ ~*MM%%%%%%@f` '''''
Martin, I just checked and there is no Mandelbrot Sock Knitting thread! 8^)
Whoa. That rocks.
I think it would be fun to open a bratwurst dog shack called “Mandel Brats”
Whuttyathink?
Isn’t the idea of “the whole mandelbrot set” sortof a contradiction in terms?
Interesting looking pastry ... does it come in cinnamon?
Oh...I thought that was a 3d representation of the dumbocrats new health care bureaucracy.
Get your yang out of that pi cos that’s a sin.
That is one bad ass f**cking fractal!
Thanks for the link. Another site I can get lost in for hours.. So much for getting a life.
lulz ftw
Cheers!
Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.