integrate(over:integrand:)
Performs the integration over the supplied scalar function.
Declaration
func integrate(over interval: ClosedRange<Double>, integrand: (Double) -> Double) -> Result<(integralResult: Double, estimatedAbsoluteError: Double), Quadrature.Error>