ToPolar

Converts a space phasor to polar coordinates

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Converts a space phasor from rectangular coordinates to polar coordinates, providing angle=0 for {0,0}.

Syntax

(absolute, angle) = ToPolar(x)

Inputs (1)

x

Type: Real[2]

Description: Real and imaginary part of space phasor

Outputs (2)

absolute

Type: Real

Description: Magnitude of space phasor

angle

Type: Angle (rad)

Description: Angle of space phasor