| * 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
|
| ctanh (x + I * y) = (sinh (2 * x) + sin (2 * y) * I )
|
| / (cosh (2 * x) + cos (2 * y)) .
|
| double two_R = 2.0 * __real__ Z;
|
| double two_I = 2.0 * __imag__ Z;
|
| double denom = cosh (two_R) + cos (two_I);
|
| __real__ Res = two_R > 0 ? 1.0 : -1.0;
|
| __real__ Res = sinh (two_R) / denom;
|
| __imag__ Res = sin (two_I) / denom;
|