PiecewisePolynomial
interface PiecewisePolynomial<T : Comparable<T>> : Piecewise<T, Polynomial<T>>
Content copied to clipboard
Represents piecewise-defined function where all the sub-functions are polynomials.
Functions
Properties
Extensions
Link copied to clipboard
fun <T : Comparable<T>, C : Ring<T>> PiecewisePolynomial<T>.asFunction(ring: C): (T) -> T?
Content 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
Content copied to clipboard
Convert this polynomial to a function using defaultValue for arguments outside the piecewise range.
Link copied to clipboard
fun <T : Comparable<T>> PiecewisePolynomial<T>.integrate(algebra: Field<T>): PiecewisePolynomial<T>
Content 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
Content copied to clipboard
Compute definite integral of given PiecewisePolynomial piece by piece in a given range Requires UnivariateIntegrationNodes or IntegrationRange and IntegrandMaxCalls