numpyy
Modules:
Floating Point & Errors
Interpolation
Approximation & Stability
Polynomials & Taylor Series
Numerical Integration
Numerical Differentiation
ODE Solvers
Example: RK4 Solver
Educational & Lab Tools
Table Utilities
Plotting Helpers
numpyy
ODE Solvers
View page source
ODE Solvers
Example: RK4 Solver
import
numpyy
as
ny
f
=
lambda
t
,
y
:
-
y
t
,
y
=
ny
.
rk4
(
f
,
y0
=
1.0
,
t0
=
0
,
tf
=
1
,
h
=
0.1
)