Complex to Polar

Returns the polar components of a complex number.

Given z in rectangular form z = a + bi, this node converts the polar components of

z=r*cos(theta)+ir*sin(theta)
z=r*cos(theta)+ir*sin(theta)
according to the following equations:

r = | z | = a 2 + b 2 r = | z | = a 2 + b 2
theta = arg ( z ) = arctan 2 ( b , a )
theta = arg ( z ) = arctan 2 ( b , a )

1378

Inputs/Outputs

datatype_icon

z

The complex number.

This input supports complex numbers, clusters of complex numbers, arrays of complex numbers, arrays of clusters of complex numbers, and waveforms.

Data Type Changes on FPGA

When you add this node to a document targeted to an FPGA, this input has a default data type that uses fewer hardware resources at compile time.

datatype_icon

r

The distance from the origin to the point, z.

Data Type Changes on FPGA

When you add this node to a document targeted to an FPGA, this output has a default data type that uses fewer hardware resources at compile time.

datatype_icon

theta

The angle for the line, r, from the origin to the point, z, in radians.

Data Type Changes on FPGA

When you add this node to a document targeted to an FPGA, this output has a default data type that uses fewer hardware resources at compile time.