Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 294 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 294 Bytes

Runge-Kutta 2

A simple haskell module to compute differential equations with Runge-Kutta.

How to use

*Main> rk2 f x0 y0 xf step

For the function y' = f(x, y) = 0.2xy with y(1) = 2 and a step of 0.05
We compute y(1.5)

*Main> rk2 (\x y -> 0.2*x*y) 1 2 1.5 0.05