vsip_cscalar_f vsip_rect_f(vsip_scalar_f radius, vsip_scalar_f theta);
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:


The phase angle should be provided in radians.
vsip_scalar_p radius: Magnitude (radius) of the complex number.
vsip_scalar_p theta: Phase angle in radians.
Returns the complex scalar in Cartesian coordinates.