Skip to main content

quad_adaptive

Function quad_adaptive 

Source
pub fn quad_adaptive<T, F>(
    f: &F,
    a: T,
    b: T,
    config: &QuadConfig<T>,
) -> Result<IntegrationResult<T>>
where T: Float + Debug + Sum, F: Fn(T) -> T,
Expand description

Adaptive quadrature with configuration

§Arguments

  • f - Function to integrate
  • a - Lower bound
  • b - Upper bound
  • config - Integration configuration

§Returns

  • IntegrationResult with value, error estimate, and diagnostics