Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core

This manual is preliminary and incomplete.
While our Core implementation implements all functions given in the standard we are still working on completing this documentation.

Please refer to the VSIPL standard for a complete function reference of the Core profile until we have completed work on this documentation.

2.1.6 vsip_rect_p - Convert Polar to Cartesian Coordinates

vsip_cscalar_f vsip_rect_f(vsip_scalar_f radius, vsip_scalar_f theta);
Description

This function converts polar coordinates (magnitude and phase angle) to a complex scalar in Cartesian coordinates (real and imaginary parts). The function computes the Cartesian coordinates from polar coordinates using Euler’s formula:

real= radius·cos(theta)

imag =radius·sin(theta)

The phase angle should be provided in radians.

Parameters
Return Value