void vsip_polar_f(vsip_cscalar_f a, vsip_scalar_f *radius, vsip_scalar_f *theta);
This function converts a complex scalar from Cartesian coordinates (real and imaginary parts) to polar coordinates (magnitude and phase angle).
The function computes both the magnitude (radius) and phase angle (theta) of the complex number:


The phase angle is returned in radians in the range
.
vsip_cscalar_p a: Input complex scalar in Cartesian coordinates.
vsip_scalar_p *radius: Pointer to store the magnitude (radius).
vsip_scalar_p *theta: Pointer to store the phase angle in radians.