Skip to main content

contour_integral

Function contour_integral 

Source
pub fn contour_integral(
    f: impl Fn(C64) -> C64,
    contour: &Contour,
    tol: f64,
) -> Result<PathIntegral, ErrorsJSL>
Expand description

Integrates f along the contour to relative tolerance tol (for example 1e-10) per segment, relative to ∫|f(z)| |dz| along the segment (the smallest error floating point can promise when the integral is small through cancellation).