learn-physics-0.6.6: Haskell code for learning physics
Copyright(c) Scott N. Walck 2012-2019
LicenseBSD3 (see LICENSE)
MaintainerScott N. Walck <walck@lvc.edu>
Stabilityexperimental
Safe HaskellSafe
LanguageHaskell2010

Physics.Learn.RungeKutta

Description

Differential equation solving using 4th-order Runge-Kutta

Synopsis

Documentation

rungeKutta4 :: StateSpace p => (p -> Diff p) -> Time p -> p -> p Source #

Take a single 4th-order Runge-Kutta step

integrateSystem :: StateSpace p => (p -> Diff p) -> Time p -> p -> [p] Source #

Solve a first-order system of differential equations with 4th-order Runge-Kutta