# Complex to Polar (G Dataflow)

Version:

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*\mathrm{cos}\left(\mathrm{theta}\right)+i\text{\hspace{0.17em}}r*\mathrm{sin}\left(\mathrm{theta}\right)$ according to the following equations:

$r=|z|=\sqrt{{a}^{2}+{b}^{2}}$
$\mathrm{theta}=\mathrm{arg}\left(z\right)=\mathrm{arctan}2\left(b,a\right)$

## 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.

## 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.

## 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.

Where This Node Can Run:

Desktop OS: Windows

FPGA: All devices (only within an optimized FPGA VI)

Web Server: Supported in VIs that run in a web application