functionextendedPolynomial

Polynomial that is linearly extended at user specified values

Extends from Modelica.Icons.Function (Icon for functions).

Information

For x between the bounds xmin < x < xmax, this function defines a polynomial

y = ∑i=1n ci xi-1

where n > 1 and xmin, xmax are parameters. For x < xmin and x > xmax, the polynomial is replaced by a linear function in such a way that the first derivative is continuous everywhere.

Inputs

TypeNameDefaultDescription
Realxx value
RealcPolynomial coefficients
RealxMinMinimum x value for polynomial
RealxMaxMaximum x value for polynomial

Outputs

TypeNameDefaultDescription
Realyy value

Revisions

  • September 28, 2012 by Michael Wetter:
    Fixed typo in the documentation.
  • March 30, 2011 by Michael Wetter:
    Added keyword zeroDerivative.
  • March 23, 2011 by Michael Wetter:
    Changed order of argument list to make x the first argument.
  • September 11, 2007 by Michael Wetter:
    Fixed error in computing the polynomial outside of xMin and xMax.
  • July 19, 2007 by Michael Wetter:
    First implementation.