get
Define Runge-Kutta integraiton function.
Compute variation of u between x and x+dx.
u
x
x+dx
Use 4-th order Runge-Kutta method.
Note
This is a slightly modified version of the RK. The k_i are proportional to delta_u instead of du_dz.
k_i
delta_u
du_dz
u (ndarray) – Holds the value of the function to integrate in x.
ndarray
du_dx – Gives the variation of u components with x.
x (float) – Where u is known.
float
dx (float) – Integration step.
du (Callable[[float, ndarray], ndarray])
Callable
Variation of u between x and x+dx.