Copyright | (c) Scott N. Walck 2012-2019 |
---|---|
License | BSD3 (see LICENSE) |
Maintainer | Scott N. Walck <walck@lvc.edu> |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell98 |
Differential equation solving using 4th-order Runge-Kutta
Synopsis
- rungeKutta4 :: StateSpace p => (p -> Diff p) -> Time p -> p -> p
- integrateSystem :: StateSpace p => (p -> Diff p) -> Time p -> p -> [p]
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