Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- type Integrator = (Double -> Double) -> Double -> Double -> Double
- midpoint :: Int -> Integrator
- trapezoid :: Int -> Integrator
- simpson :: Int -> Integrator
Documentation
type Integrator = (Double -> Double) -> Double -> Double -> Double Source
A function, a lower bound, an upper bound and returns the integrated value.
midpoint :: Int -> Integrator Source
Midpoint integration.
trapezoid :: Int -> Integrator Source
Trapezoidal integration.
simpson :: Int -> Integrator Source
Integration using Simpson's rule.