Files
Basalt2/node_modules/shiki/samples/julia.sample
Robert Jelic 31787b0e9b Fix
2025-02-16 18:04:24 +01:00

17 lines
295 B
Plaintext

function mandelbrot(a)
z = 0
for i=1:50
z = z^2 + a
end
return z
end
for y=1.0:-0.05:-1.0
for x=-2.0:0.0315:0.5
abs(mandelbrot(complex(x, y))) < 2 ? print("*") : print(" ")
end
println()
end
# From: https://rosettacode.org/wiki/Mandelbrot_set#Julia