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.Units.SI.Angle phi0 = 0 "Phase angle phi shall be in the range: -pi < phi-phi0 < pi"; output Modelica.Units.SI.Angle phi "= phase angle of c"; end arg;