Skip to content

Commit b96c753

Browse files
committed
Increasing precision of Python Lorenz solution.
1 parent 1592275 commit b96c753

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

img/lorenz_py.png

23.7 KB
Loading

lorenz/lorenz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def rhs(T, X):
6767
# method used by the solver, as well as a variety of keyword arguments to tune
6868
# the behavior of the solver.
6969

70-
sol = solve_ivp(rhs, (ti, tf), [x0, y0, z0], method="RK45", rtol=0.000001)
70+
sol = solve_ivp(rhs, (ti, tf), [x0, y0, z0], method="RK45", rtol=0.0000001)
7171
T = sol.t # get time attribute from solution object
7272
X = sol.y # get state variable attribute from solution object
7373

0 commit comments

Comments
 (0)