This function returns y = cos(u), with -∞ < u < ∞:
function cos extends Modelica.Math.Icons.AxisLeft; input Modelica.Units.SI.Angle u "Independent variable"; output Real y "Dependent variable y=cos(u)"; end cos;