Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Mandelbrot-set/Mathematica/mandelbrot-set-1.math
Normal file
5
Task/Mandelbrot-set/Mathematica/mandelbrot-set-1.math
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
eTime[c_, maxIter_Integer: 100] := Length@NestWhileList[#^2 + c &, 0, Abs@# <= 2 &, 1, maxIter] - 1
|
||||
|
||||
DistributeDefinitions[eTime];
|
||||
mesh = ParallelTable[eTime[x + I*y, 1000], {y, 1.2, -1.2, -0.01}, {x, -1.72, 1, 0.01}];
|
||||
ReliefPlot[mesh, Frame -> False]
|
||||
7
Task/Mandelbrot-set/Mathematica/mandelbrot-set-2.math
Normal file
7
Task/Mandelbrot-set/Mathematica/mandelbrot-set-2.math
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
cf = With[{
|
||||
mandel = Block[{z = #, c = #},
|
||||
Catch@Do[If[Abs[z] > 2, Throw@i]; z = z^2 + c, {i, 100}]] &
|
||||
},
|
||||
Compile[{},Table[mandel[y + x I], {x, -1, 1, 0.005}, {y, -2, 0.5, 0.005}]]
|
||||
];
|
||||
ArrayPlot[cf[]]
|
||||
1
Task/Mandelbrot-set/Mathematica/mandelbrot-set-3.math
Normal file
1
Task/Mandelbrot-set/Mathematica/mandelbrot-set-3.math
Normal file
|
|
@ -0,0 +1 @@
|
|||
MandelbrotSetPlot[]
|
||||
Loading…
Add table
Add a link
Reference in a new issue