Copyright | (c) Scott N. Walck 2012-2018 |
---|---|
License | BSD3 (see LICENSE) |
Maintainer | Scott N. Walck <walck@lvc.edu> |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell2010 |
Composite Trapezoid Rule and Composite Simpson's Rule
Synopsis
- compositeTrapezoid :: (VectorSpace v, Fractional (Scalar v)) => Int -> Scalar v -> Scalar v -> (Scalar v -> v) -> v
- compositeSimpson :: (VectorSpace v, Fractional (Scalar v)) => Int -> Scalar v -> Scalar v -> (Scalar v -> v) -> v
Documentation
:: (VectorSpace v, Fractional (Scalar v)) | |
=> Int | number of intervals (one less than the number of function evaluations) |
-> Scalar v | lower limit |
-> Scalar v | upper limit |
-> (Scalar v -> v) | function to be integrated |
-> v | definite integral |
Composite Trapezoid Rule
:: (VectorSpace v, Fractional (Scalar v)) | |
=> Int | number of half-intervals (one less than the number of function evaluations) |
-> Scalar v | lower limit |
-> Scalar v | upper limit |
-> (Scalar v -> v) | function to be integrated |
-> v | definite integral |
Composite Simpson's Rule