y = ∑_{i=1}^{n} c_{i} x^{i-1}
where n > 1 and x_{min}, x_{max} are parameters. For x < x_{min} and x > x_{max}, the polynomial is replaced by a linear function in such a way that the first derivative is continuous everywhere.function extendedPolynomial extends Modelica.Icons.Function; input Real x "x value"; input Real[:] c "Polynomial coefficients"; input Real xMin "Minimum x value for polynomial"; input Real xMax "Maximum x value for polynomial"; output Real y "y value"; end extendedPolynomial;
zeroDerivative
.
x
the first argument.
xMin
and xMax
.