Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Mandelbrot-set/DWScript/mandelbrot-set.dw
Normal file
17
Task/Mandelbrot-set/DWScript/mandelbrot-set.dw
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
const maxIter = 256;
|
||||
|
||||
var x, y, i : Integer;
|
||||
for y:=-39 to 39 do begin
|
||||
for x:=-39 to 39 do begin
|
||||
var c := Complex(y/40-0.5, x/40);
|
||||
var z := Complex(0, 0);
|
||||
for i:=1 to maxIter do begin
|
||||
z := z*z + c;
|
||||
if Abs(z)>=4 then Break;
|
||||
end;
|
||||
if i>=maxIter then
|
||||
Print('#')
|
||||
else Print('.');
|
||||
end;
|
||||
PrintLn('');
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue