fromPolar

Complex from polar representation

Information

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

This function constructs a Complex number from its length (absolute) and angle (argument).

Syntax

c = fromPolar(len, phi)

Inputs (2)

len

Type: Real

Description: abs of complex

phi

Type: Angle (rad)

Description: arg of complex

Outputs (1)

c

Type: Complex

Description: = len*cos(phi) + j*len*sin(phi)