learn-physics-0.6.6: Haskell code for learning physics
Copyright(c) Scott N. Walck 2012-2018
LicenseBSD3 (see LICENSE)
MaintainerScott N. Walck <walck@lvc.edu>
Stabilityexperimental
Safe HaskellSafe
LanguageHaskell2010

Physics.Learn.CompositeQuadrature

Description

Composite Trapezoid Rule and Composite Simpson's Rule

Synopsis

Documentation

compositeTrapezoid Source #

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

compositeSimpson Source #

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