forked from M-Labs/artiq
1
0
Fork 0

examples/mandelbrot: fix variable initialization

This commit is contained in:
Sebastien Bourdeauducq 2015-11-24 15:26:37 +08:00
parent c14299dca8
commit 8999d57461
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ class Mandelbrot(EnvExperiment):
c_i = y*yScale/height-yScale/2 c_i = y*yScale/height-yScale/2
z_r = c_r z_r = c_r
z_i = c_i z_i = c_i
i = 0
for i in range(16): for i in range(16):
if z_r*z_r + z_i*z_i > 4: if z_r*z_r + z_i*z_i > 4:
break break