Evaluate polynomial at a given abscissa value with linear extrapolation outside of the defined range
function evaluateWithRange extends Modelica.Icons.Function; input Real p[:] "Polynomial coefficients (p[1] is coefficient of highest power)"; input Real uMin "Polynomial valid in the range uMin .. uMax"; input Real uMax "Polynomial valid in the range uMin .. uMax"; input Real u "Abscissa value"; output Real y "Value of polynomial at u. Outside of uMin,uMax, linear extrapolation is used"; end evaluateWithRange;