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;

Generated at 2020-06-05T07:38:22Z by OpenModelica 1.16.0~dev-420-gc007a39