value

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.

fun Polynomial<Double>.value(): Double

Evaluates the value of the given double polynomial for given double argument.

fun <T : Any, C : Ring<T>> Polynomial<T>.value(ring: C, arg: T): T

Evaluates the value of the given polynomial for given argument.