PiecewisePolynomial

fun fun interface PiecewisePolynomial<T : Any> : Piecewise<T, Polynomial<T>>

Represents piecewise-defined function where all the sub-functions are polynomials.

Functions

findPiece
Link copied to clipboard
abstract fun findPiece(arg: T): Polynomial<T>?
Returns the appropriate sub-function for given piece key.

Inheritors

OrderedPiecewisePolynomial
Link copied to clipboard

Extensions

asFunction
Link copied to clipboard
fun <T : Comparable<T>, C : Ring<T>> PiecewisePolynomial<T>.asFunction(ring: C): (T) -> T?
value
Link copied to clipboard
fun <T : Comparable<T>, C : Ring<T>> PiecewisePolynomial<T>.value(ring: C, arg: T): T?
Return a value of polynomial function with given ring an given arg or null if argument is outside of piecewise definition.