| * This file has no copyright assigned and is placed in the Public Domain.
|
| * This file is part of the w64 mingw-runtime package.
|
| * No warranty is given; refer to the file DISCLAIMER within this package.
|
| Contributed by Danny Smith
|
| /* casin (Z ) = -I * clog(I * Z + csqrt (1.0 - Z * Z))) */
|
| float complex casinf (float complex Z)
|
| __real__ Res = asinf (x);
|
| else /* -I * clog(I * Z + csqrt(1.0 - Z * Z))) */
|
| /* Z * Z = ((x - y) * (x + y)) + (2.0 * x * y) * I */
|
| /* calculate 1 - Z * Z */
|
| __real__ ZZ = 1.0f - (x - y) * (x + y);
|
| __imag__ ZZ = -2.0f * x * y;
|
| __real__ Res = __imag__ ZZ;
|
| __imag__ Res = - __real__ ZZ;
|