Files
Basalt2/node_modules/shiki/samples/julia.sample
Robert Jelic b0a4a6da9c Vitepress
2025-02-10 06:53:23 +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