PiecewisePolynomial
Represents piecewise-defined function where all the sub-functions are polynomials.
Functions
Link copied to clipboard
Convert this polynomial to a function returning nullable value (null if argument is outside piecewise range).
fun <T : Comparable<T>, C : Ring<T>> PiecewisePolynomial<T>.asFunction(ring: C, defaultValue: T): (T) -> T
Convert this polynomial to a function using defaultValue for arguments outside the piecewise range.
Link copied to clipboard
Returns the appropriate sub-function for given piece key.
Link copied to clipboard
Compute analytical indefinite integral of this PiecewisePolynomial, keeping all intervals intact
fun <T : Comparable<T>> PiecewisePolynomial<T>.integrate(algebra: Field<T>, range: ClosedRange<T>): T
Compute definite integral of given PiecewisePolynomial piece by piece in a given range Requires UnivariateIntegrationNodes or IntegrationRange and IntegrandMaxCalls