32 #define REAL_PART(z) ((z).parts[0
]) 33 #define IMAG_PART(z) ((z).parts[1
]) 68 complex
cpack(
double x,
double y)
120 complex
cadd(complex y, complex z)
130 complex
csub(complex y, complex z)
140 complex
cmul(complex y, complex z)
152 w =
cpack(a * c - b * d
, a * d + b * c
);
159 complex
cdiv(complex y, complex z)
197 void cchsh(
double x,
double* c,
double* s)
219 void cchc(
double x,
double* ch,
double* c)
double cos(double x)
Cosine function.
double trunc(double x)
Truncate function.
complex csub(complex a, complex z)
Subtraction of two complex numbers.
double ceil(double x)
Ceiling function.
double hypot(double x, double y)
hypot
complex cround(complex z)
Division of two complex numbers.
double creal(complex z)
Real part of complex number.
complex cadd(complex a, complex z)
Addition of two complex numbers.
void cchc(double x, double *ch, double *c)
Calculate cosh and cos.
double floor(double x)
Floor function.
complex cdiv(complex a, complex z)
Division of two complex numbers.
double round(double x)
Round function.
complex ctrunc(complex z)
Truncated value of complex number.
double sinh(double x)
Hyperbolic sine function.
double cabs(complex z)
Absolute value of complex number.
complex cfloor(complex z)
Floor value of complex number.
complex cpack(double x, double y)
Pack two real numbers into a complex number.
complex cceil(complex z)
Ceiling value of complex number.
double cimag(complex z)
Imaginary part of complex number.
double fabs(double x)
Returns the absolute value of x.
complex cmul(complex a, complex z)
Multiplication of two complex numbers.
double cosh(double x)
Hyperbolic cosine function.
complex creci(complex z)
Reciprocal value of complex number.
double exp(double x)
Returns the exponential of x.
void cchsh(double x, double *c, double *s)
Calculate cosh and sinh.