pub fn integrate<F, Y>(f: F, (a, b): (f64, f64), method: Integral) -> YExpand description
Numerical Integration
§Description
fn integrate(f, (a,b), method) -> Y
Y must implement GKIntegrable and NCIntegrable, like f64 or
C64 (complex feature only).
f: Target function (Fn(f64) -> Y)(a,b): Target intervalmethod: Numerical integration method
§Method
- Gauss-Legendre Quadrature (up to order 30) :
GaussLegendre(usize) - Newton-Cotes Quadrature:
NewtonCotes(usize) - Gauss-Kronrod Quadrature
G7K15(tol, max_iter)G10K21G15K31G20K41G25K51G30K61
- Gauss-Kronrod Quarature with Relative Error
G7K15R(rtol, max_iter)G10K21RG15K31RG20K41RG25K51RG30K61R