integrate

fun <T : Any> Field<T>.integrate(vararg features: IntegrandFeature, function: (Double) -> T): UnivariateIntegrand<T>

Integrate T-valued univariate function using provided set of IntegrandFeature Following features are evaluated:

fun <T : Any> Field<T>.integrate(range: ClosedRange<Double>, order: Int = 10, intervals: Int = 10, vararg features: IntegrandFeature, function: (Double) -> T): UnivariateIntegrand<T>

Use GaussIntegrator.Companion.integrate to integrate the function in the current algebra with given range and numPoints

fun UnivariateIntegrator<Double>.integrate(range: ClosedRange<Double>, vararg features: IntegrandFeature, function: (Double) -> Double): Double

A shortcut method to integrate a function in range with additional features. The function is placed in the end position to allow passing a lambda.

fun UnivariateIntegrator<Double>.integrate(range: ClosedRange<Double>, function: (Double) -> Double, featureBuilder: MutableList<IntegrandFeature>.() -> Unit = {}): Double

A shortcut method to integrate a function in range with additional features. The function is placed in the end position to allow passing a lambda.