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
findPiece
Link copied to clipboard
Properties
pieces
Link copied to clipboard
Extensions
asFunction
Link copied to clipboard
fun <T : Comparable<T>, C : Ring<T>> PiecewisePolynomial<T>.asFunction(ring: C): (T) -> T?
Content copied to clipboard
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.
integrate
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
Sources
common source
Link copied to clipboard