1 | /* $NetBSD: complex.h,v 1.3 2010/09/15 16:11:30 christos Exp $ */ |
---|
2 | |
---|
3 | /* |
---|
4 | * Written by Matthias Drochner. |
---|
5 | * Public domain. |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef _COMPLEX_H |
---|
9 | #define _COMPLEX_H |
---|
10 | |
---|
11 | #define complex _Complex |
---|
12 | #define _Complex_I 1.0fi |
---|
13 | #define I _Complex_I |
---|
14 | |
---|
15 | #include <sys/cdefs.h> |
---|
16 | |
---|
17 | __BEGIN_DECLS |
---|
18 | |
---|
19 | /* 7.3.5 Trigonometric functions */ |
---|
20 | /* 7.3.5.1 The cacos functions */ |
---|
21 | double complex cacos(double complex); |
---|
22 | float complex cacosf(float complex); |
---|
23 | |
---|
24 | /* 7.3.5.2 The casin functions */ |
---|
25 | double complex casin(double complex); |
---|
26 | float complex casinf(float complex); |
---|
27 | long double complex casinl(long double complex); |
---|
28 | |
---|
29 | /* 7.3.5.1 The catan functions */ |
---|
30 | double complex catan(double complex); |
---|
31 | float complex catanf(float complex); |
---|
32 | long double complex catanl(long double complex); |
---|
33 | |
---|
34 | /* 7.3.5.1 The ccos functions */ |
---|
35 | double complex ccos(double complex); |
---|
36 | float complex ccosf(float complex); |
---|
37 | |
---|
38 | /* 7.3.5.1 The csin functions */ |
---|
39 | double complex csin(double complex); |
---|
40 | float complex csinf(float complex); |
---|
41 | |
---|
42 | /* 7.3.5.1 The ctan functions */ |
---|
43 | double complex ctan(double complex); |
---|
44 | float complex ctanf(float complex); |
---|
45 | |
---|
46 | /* 7.3.6 Hyperbolic functions */ |
---|
47 | /* 7.3.6.1 The cacosh functions */ |
---|
48 | double complex cacosh(double complex); |
---|
49 | float complex cacoshf(float complex); |
---|
50 | |
---|
51 | /* 7.3.6.2 The casinh functions */ |
---|
52 | double complex casinh(double complex); |
---|
53 | float complex casinhf(float complex); |
---|
54 | |
---|
55 | /* 7.3.6.3 The catanh functions */ |
---|
56 | double complex catanh(double complex); |
---|
57 | float complex catanhf(float complex); |
---|
58 | |
---|
59 | /* 7.3.6.4 The ccosh functions */ |
---|
60 | double complex ccosh(double complex); |
---|
61 | float complex ccoshf(float complex); |
---|
62 | |
---|
63 | /* 7.3.6.5 The csinh functions */ |
---|
64 | double complex csinh(double complex); |
---|
65 | float complex csinhf(float complex); |
---|
66 | |
---|
67 | /* 7.3.6.6 The ctanh functions */ |
---|
68 | double complex ctanh(double complex); |
---|
69 | float complex ctanhf(float complex); |
---|
70 | |
---|
71 | /* 7.3.7 Exponential and logarithmic functions */ |
---|
72 | /* 7.3.7.1 The cexp functions */ |
---|
73 | double complex cexp(double complex); |
---|
74 | float complex cexpf(float complex); |
---|
75 | |
---|
76 | /* 7.3.7.2 The clog functions */ |
---|
77 | double complex clog(double complex); |
---|
78 | float complex clogf(float complex); |
---|
79 | long double complex clogl(long double complex); |
---|
80 | |
---|
81 | /* 7.3.8 Power and absolute-value functions */ |
---|
82 | /* 7.3.8.1 The cabs functions */ |
---|
83 | /*#ifndef __LIBM0_SOURCE__ */ |
---|
84 | /* avoid conflict with historical cabs(struct complex) */ |
---|
85 | /* double cabs(double complex) __RENAME(__c99_cabs); |
---|
86 | float cabsf(float complex) __RENAME(__c99_cabsf); |
---|
87 | #endif |
---|
88 | */ |
---|
89 | long double cabsl(long double complex) ; |
---|
90 | double cabs(double complex) ; |
---|
91 | float cabsf(float complex) ; |
---|
92 | |
---|
93 | /* 7.3.8.2 The cpow functions */ |
---|
94 | double complex cpow(double complex, double complex); |
---|
95 | float complex cpowf(float complex, float complex); |
---|
96 | |
---|
97 | /* 7.3.8.3 The csqrt functions */ |
---|
98 | double complex csqrt(double complex); |
---|
99 | float complex csqrtf(float complex); |
---|
100 | long double complex csqrtl(long double complex); |
---|
101 | |
---|
102 | /* 7.3.9 Manipulation functions */ |
---|
103 | /* 7.3.9.1 The carg functions */ |
---|
104 | double carg(double complex); |
---|
105 | float cargf(float complex); |
---|
106 | long double cargl(long double complex); |
---|
107 | |
---|
108 | /* 7.3.9.2 The cimag functions */ |
---|
109 | double cimag(double complex); |
---|
110 | float cimagf(float complex); |
---|
111 | long double cimagl(long double complex); |
---|
112 | |
---|
113 | /* 7.3.9.3 The conj functions */ |
---|
114 | double complex conj(double complex); |
---|
115 | float complex conjf(float complex); |
---|
116 | |
---|
117 | /* 7.3.9.4 The cproj functions */ |
---|
118 | double complex cproj(double complex); |
---|
119 | float complex cprojf(float complex); |
---|
120 | |
---|
121 | /* 7.3.9.5 The creal functions */ |
---|
122 | double creal(double complex); |
---|
123 | float crealf(float complex); |
---|
124 | long double creall(long double complex); |
---|
125 | |
---|
126 | #if __GNU_VISIBLE |
---|
127 | double complex clog10(double complex); |
---|
128 | float complex clog10f(float complex); |
---|
129 | #endif |
---|
130 | |
---|
131 | #if defined(__CYGWIN__) |
---|
132 | long double complex cacosl(long double complex); |
---|
133 | long double complex ccosl(long double complex); |
---|
134 | long double complex csinl(long double complex); |
---|
135 | long double complex ctanl(long double complex); |
---|
136 | long double complex cacoshl(long double complex); |
---|
137 | long double complex casinhl(long double complex); |
---|
138 | long double complex catanhl(long double complex); |
---|
139 | long double complex ccoshl(long double complex); |
---|
140 | long double complex csinhl(long double complex); |
---|
141 | long double complex ctanhl(long double complex); |
---|
142 | long double complex cexpl(long double complex); |
---|
143 | long double complex cpowl(long double complex, long double complex); |
---|
144 | long double complex conjl(long double complex); |
---|
145 | long double complex cprojl(long double complex); |
---|
146 | #if __GNU_VISIBLE |
---|
147 | long double complex clog10l(long double complex); |
---|
148 | #endif |
---|
149 | #endif /* __CYGWIN__ */ |
---|
150 | |
---|
151 | __END_DECLS |
---|
152 | |
---|
153 | #endif /* ! _COMPLEX_H */ |
---|