Cubic spline
function CubicSplineEval extends Modelica.Icons.Function; input Real x "input"; input Real[4] coefs "spline coefficients"; output Real y "output"; end CubicSplineEval;