quad-rs 0.3.0

Adaptive Gauss-Kronrod Integration in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(thiserror::Error, Debug, PartialEq)]
/// Error type for integrator
pub enum IntegratorError<T> {
    #[error("exceeded the maximum number of function evaluations before convergence")]
    ExceededMaxFunctionEvaluations,
    #[error("non-finite error estimate")]
    NonFiniteErrorEstimate,
    #[error("no segments found")]
    NoSegments,
    #[error("empty integration segment")]
    EmptySegment,
    #[error("non-finite integrand at {point:?}")]
    NonFiniteIntegrand { point: T },
    #[error("possible singularity at {singularity:?}")]
    PossibleSingularity { singularity: T },
    #[error("refined contour piece smaller than minimum")]
    PieceTooSmall,
}