GaussIntegrator

class GaussIntegrator<T : Any>(algebra: Field<T>) : Integrator<UnivariateIntegrand<T>>

A simple one-pass integrator based on Gauss rule Following integrand features are accepted:

Constructors

Link copied to clipboard
fun <T : Any> GaussIntegrator(algebra: Field<T>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun process(integrand: UnivariateIntegrand<T>): UnivariateIntegrand<T>

Runs one integration pass and return a new Integrand with a new set of features.

Properties

Link copied to clipboard
val algebra: Field<T>

Extensions

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

Integrate using intervals segments with Gauss-Legendre rule of order order.

Sources

Link copied to clipboard