PolynomialFunction
data class PolynomialFunction(val coefficients: DoubleArray, val domain: Range<Double> = Range.all()) : UnivariateFunction
Polynomial function of form f(x) = c0 + c1*x + c2*x^2 + ... + c\[N]*x^N.
Parameters
coefficients
coefficients for f(x), whereby coefficients0 corresponds to c0
domain
domain for which the polynomial function is defined
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the calculated value of f(x), if x is within the function's domain. Otherwise null is returned.