| 1 | /* The header complex.h defines macros and declares functions that support complex
|
|---|
| 2 | * arithmetic.
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | #ifndef _COMPLEX_
|
|---|
| 6 | #define _COMPLEX_
|
|---|
| 7 |
|
|---|
| 8 | /* Macros */
|
|---|
| 9 | #define _Complex
|
|---|
| 10 | #define _Imaginary
|
|---|
| 11 | #define complex _Complex
|
|---|
| 12 | #define _Complex_I ((const float _Complex)0)
|
|---|
| 13 | #define imaginary _Imaginary
|
|---|
| 14 | #define _Imaginary_I ((const float _Imaginary)0)
|
|---|
| 15 | #ifdef _Imaginary_I
|
|---|
| 16 | #define I _Imaginary_I
|
|---|
| 17 | #else
|
|---|
| 18 | #define I _Complex_I
|
|---|
| 19 | #endif
|
|---|
| 20 |
|
|---|
| 21 | /* Funciton */
|
|---|
| 22 | double cabs(double complex);
|
|---|
| 23 | float cabsf(float complex);
|
|---|
| 24 | long double cabsl(long double complex);
|
|---|
| 25 | double complex cacos(double complex);
|
|---|
| 26 | float complex cacosf(float complex);
|
|---|
| 27 | double complex cacosh(double complex);
|
|---|
| 28 | float complex cacoshf(float complex);
|
|---|
| 29 | long double complex cacoshl(long double complex);
|
|---|
| 30 | long double complex cacosl(long double complex);
|
|---|
| 31 | double carg(double complex);
|
|---|
| 32 | float cargf(float complex);
|
|---|
| 33 | long double cargl(long double complex);
|
|---|
| 34 | double complex casin(double complex);
|
|---|
| 35 | float complex casinf(float complex);
|
|---|
| 36 | double complex casinh(double complex);
|
|---|
| 37 | float complex casinhf(float complex);
|
|---|
| 38 | long double complex casinhl(long double complex);
|
|---|
| 39 | long double complex casinl(long double complex);
|
|---|
| 40 | double complex catan(double complex);
|
|---|
| 41 | float complex catanf(float complex);
|
|---|
| 42 | double complex catanh(double complex);
|
|---|
| 43 | float complex catanhf(float complex);
|
|---|
| 44 | long double complex catanhl(long double complex);
|
|---|
| 45 | long double complex catanl(long double complex);
|
|---|
| 46 | double complex ccos(double complex);
|
|---|
| 47 | float complex ccosf(float complex);
|
|---|
| 48 | double complex ccosh(double complex);
|
|---|
| 49 | float complex ccoshf(float complex);
|
|---|
| 50 | long double complex ccoshl(long double complex);
|
|---|
| 51 | long double complex ccosl(long double complex);
|
|---|
| 52 | double complex cexp(double complex);
|
|---|
| 53 | float complex cexpf(float complex);
|
|---|
| 54 | long double complex cexpl(long double complex);
|
|---|
| 55 | double cimag(double complex);
|
|---|
| 56 | float cimagf(float complex);
|
|---|
| 57 | long double cimagl(long double complex);
|
|---|
| 58 | double complex clog(double complex);
|
|---|
| 59 | float complex clogf(float complex);
|
|---|
| 60 | long double complex clogl(long double complex);
|
|---|
| 61 | double complex conj(double complex);
|
|---|
| 62 | float complex conjf(float complex);
|
|---|
| 63 | long double complex conjl(long double complex);
|
|---|
| 64 | double complex cpow(double complex, double complex);
|
|---|
| 65 | float complex cpowf(float complex, float complex);
|
|---|
| 66 | long double complex cpowl(long double complex, long double complex);
|
|---|
| 67 | double complex cproj(double complex);
|
|---|
| 68 | float complex cprojf(float complex);
|
|---|
| 69 | long double complex cprojl(long double complex);
|
|---|
| 70 | double creal(double complex);
|
|---|
| 71 | float crealf(float complex);
|
|---|
| 72 | long double creall(long double complex);
|
|---|
| 73 | double complex csin(double complex);
|
|---|
| 74 | float complex csinf(float complex);
|
|---|
| 75 | double complex csinh(double complex);
|
|---|
| 76 | float complex csinhf(float complex);
|
|---|
| 77 | long double complex csinhl(long double complex);
|
|---|
| 78 | long double complex csinl(long double complex);
|
|---|
| 79 | double complex csqrt(double complex);
|
|---|
| 80 | float complex csqrtf(float complex);
|
|---|
| 81 | long double complex csqrtl(long double complex);
|
|---|
| 82 | double complex ctan(double complex);
|
|---|
| 83 | float complex ctanf(float complex);
|
|---|
| 84 | double complex ctanh(double complex);
|
|---|
| 85 | float complex ctanhf(float complex);
|
|---|
| 86 | long double complex ctanhl(long double complex);
|
|---|
| 87 | long double complex ctanl(long double complex);
|
|---|
| 88 |
|
|---|
| 89 | #endif
|
|---|
| 90 |
|
|---|