This function returns the Real argument of the Complex input, i.e., its angle.
function arg extends Modelica.Icons.Function; input Complex c "Complex number"; input Modelica.SIunits.Angle phi0 = 0 "Phase angle phi shall be in the range: -pi < phi-phi0 < pi"; output Modelica.SIunits.Angle phi "= phase angle of c"; end arg;