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

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

Types

Companion
Link copied to clipboard
object Companion

Functions

process
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

algebra
Link copied to clipboard
val algebra: Field<T>

Extensions

integrate
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

common source
Link copied to clipboard