rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/julia
2019-10-21 10:18:17 +02:00

12 lines
176 B
Plaintext

function mandel(z)
c = z
maxiter = 80
for n = 1:maxiter
if abs(z) > 2
return n-1
end
z = z^2 + c
end
return maxiter
end