function PerformanceCurve input Real x "Value of interest"; input Real x_curve[:] "Abcissa"; input Real y_curve[size(x_curve, 1)] "Ordinate"; input Real r_N(unit = "1") "Relative revolution, r_N=N/N_nominal"; input Real delta = 0.05 "Small value for switching implementation around zero rpm"; output Real y "Output at x"; end PerformanceCurve;