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