Skip to main content

Module functions

Module functions 

Source
Expand description

Auto-generated module

🤖 Generated with SplitRS

Traits§

OdeSystem
Trait representing the right-hand side of an ODE system dy/dt = f(t, y).

Functions§

adaptive_rk45
Adaptive RK45 integration using Dormand-Prince.
euler_step
Euler forward step: y_new = y + dt * dydt
implicit_euler_step
Implicit Euler step: solve (I - dt*J) * y_new = y + dt*rhs.
leapfrog_step
Leapfrog step (Störmer-Verlet).
mixed_error_norm
Compute the mixed absolute/relative RMS error norm.
rk2_step
RK2 midpoint method (Heun’s method): y_new = y + dt * f(y + 0.5*dt*f(y))
rk4_step
Classic RK4 step.
rk45_step
Dormand-Prince RK45 adaptive step.
solve_linear_system
Solves a linear system A * x = b using Gaussian elimination with partial pivoting.
velocity_verlet
Velocity-Verlet step.