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 a given arg or null if argument is outside piecewise definition.

fun Polynomial<Double>.value(arg: Double): Double

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

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

Evaluates the value of the given polynomial for given argument. https://en.wikipedia.org/wiki/Horner%27s_method