#include <complex.h>
#include <math.h>
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double
cargl(long double complex z)
-{
- #ifdef _LDBL_EQ_DBL
+{
return carg (z);
- #else
- return atan2l (cimagl (z), creall (z));
- #endif
}
+#endif
#include <math.h>
#include "cephes_subrl.h"
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
#ifdef __weak_alias
__weak_alias(catanl, _catanl)
#endif
w = HUGE_VALL + HUGE_VALL * I;
return w;
}
-
+#endif
#include <complex.h>
#include <math.h>
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double complex
ccoshl(long double complex z)
{
w = coshl(x) * cosl(y) + (sinhl(x) * sinl(y)) * I;
return w;
}
+#endif
#include <math.h>
#include "cephes_subrl.h"
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double complex
ccosl(long double complex z)
{
w = cosl(creall(z)) * ch - (sinl(creall(z)) * sh) * I;
return w;
}
+#endif
/* calculate cosh and sinh */
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
void
_cchshl(long double x, long double *c, long double *s)
{
*c = e + ei;
}
}
+#endif
/* Program to subtract nearest integer multiple of PI */
/* Taylor series expansion for cosh(2y) - cos(2x) */
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double
_ctansl(long double complex z)
{
} while (fabsl(t/d) > MACHEPL);
return d;
}
+#endif
#include <complex.h>
#include <math.h>
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double complex
cexpl(long double complex z)
{
w = r * cosl(y) + r * sinl(y) * I;
return w;
}
+#endif
#include <complex.h>
#include <math.h>
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double complex
clogl(long double complex z)
{
w = p + rr * I;
return w;
}
+#endif
#include <complex.h>
#include <math.h>
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double complex
cpowl(long double complex a, long double complex z)
{
w = r * cosl(theta) + (r * sinl(theta)) * I;
return w;
}
+#endif
*
* INFINITY + I * copysign(0.0, cimag(z))
*/
+
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double complex
cprojl(long double complex z)
{
return (w.z);
}
+#endif
#include <complex.h>
#include <math.h>
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double complex
csinhl(long double complex z)
{
w = sinhl(x) * cosl(y) + (coshl(x) * sinl(y)) * I;
return w;
}
+#endif
#include <math.h>
#include "cephes_subrl.h"
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double complex
csinl(long double complex z)
{
w = sinl(creall(z)) * ch + (cosl(creall(z)) * sh) * I;
return w;
}
+#endif
#define cpackl(r, i) ((r) + (i) * I)
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double complex
csqrtl(long double complex z)
{
else
return (result);
}
+#endif
#include <complex.h>
#include <math.h>
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double complex
ctanhl(long double complex z)
{
return w;
}
+#endif
#include <math.h>
#include "cephes_subrl.h"
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double complex
ctanl(long double complex z)
{
w = sinl(2.0L * creall(z)) / d + (sinhl(2.0L * cimagl(z)) / d) * I;
return w;
}
+#endif