rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/julia

12 lines
176 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
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