| Stability | experimental |
|---|---|
| Maintainer | Scott N. Walck <walck@lvc.edu> |
| Safe Haskell | Trustworthy |
Physics.Learn.CompositeQuadrature
Description
Composite Trapezoid Rule and Composite Simpson's Rule
- 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
Arguments
| :: (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
Arguments
| :: (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