cacos Function (ROM Call 0x13A)

math.h, timath.h

void cacos (float z_re, float z_im, float *w_re, float *w_im);

Complex arc cosine.

cacos calculates the arc cosine w = acos(z) of the complex number which real and imaginary parts are z_re and z_im, and stores real and imaginary part of the result in floating point destinations pointed to by w_re and w_im. The complex arc cosine is defined by

acos(z) = -i ln (z + i sqrt (1 - z^2))

where ln and sqrt are complex natural logarithm and complex square root (see cln and csqrt).


Uses: acos, fabs, is_inf, is_nan, pow, sqrt, _bcd_math
Used by: cacosh