ofPolynomialFunctions
fun ofPolynomialFunctions(starts: NonEmptyList<Double>, coefficients: NonEmptyList<DoubleArray>, prependConstant: Boolean = false, prependConstantValue: Double = Double.NaN): UnivariateFunction
Creates a concatenated function with a list of polynomial function. For example: f(x) = 2 + 3x + 4x^2 + x^3 for [-2, 3) f(x) = 1 + 2x + 3x^2 + 4* x^3 for [3, ∞) The starts would be listOf(-2, 3) and the coefficients would be listOf(arrayOf(2, 3, 4, 1), arrayOf(1, 2, 3, 4)).
Parameters
starts
absolute start value of the function member
coefficients
coefficients of the polynomial function members
prependConstant
if true, the first linear function is preceded by a constant function