Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83471aa commit 89e5947Copy full SHA for 89e5947
1 file changed
examples/mplot3d/lorenz_attractor.py
@@ -30,7 +30,7 @@ def lorenz(x, y, z, s=10, r=28, b=2.667) :
30
xs[0], ys[0], zs[0] = (0., 1., 1.05)
31
32
# Stepping through "time".
33
-for i in xrange(stepCnt) :
+for i in range(stepCnt) :
34
# Derivatives of the X, Y, Z state
35
x_dot, y_dot, z_dot = lorenz(xs[i], ys[i], zs[i])
36
xs[i + 1] = xs[i] + (x_dot * dt)
0 commit comments