functionquinticHermite

Quintic Hermite spline function for interpolation between two functions with a continuous second derivative

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

Information

Returns the result y of a quintic Hermite spline, which is a C2 continuous interpolation between two functions. The abscissa value x has to be between x1 and x2. Variables y1, y1d, y1dd are the ordinate, ordinate derivative and ordinate second derivative of the function at x1. Variables y2, y2d, y2dd are respectively the ordinate, ordinate derivative and ordinate second derivative of the function at x2.

Inputs

TypeNameDefaultDescription
RealxAbscissa value
Realx1Lower abscissa value
Realx2Upper abscissa value
Realy1Lower ordinate value
Realy2Upper ordinate value
Realy1dLower derivative
Realy2dUpper derivative
Realy1ddLower second derivative
Realy2ddUpper second derivative

Outputs

TypeNameDefaultDescription
RealyInterpolated ordinate value

Revisions

  • July 21, 2025 by Hongxiang Fu:
    Made the function inlined.
    This is for #4278.
  • April 19, 2017, by Filip Jorissen:
    First implementation.