value
fun <T : Comparable<T>, C : Ring<T>> PiecewisePolynomial<T>.value(ring: C, arg: T): T?
Content copied to clipboard
Return a value of polynomial function with given ring a given arg or null if argument is outside piecewise definition.
Evaluates the value of the given double polynomial for given double argument.
Evaluates the value of the given polynomial for given argument. https://en.wikipedia.org/wiki/Horner%27s_method