1/* $NetBSD: complex.h,v 1.2 2009/07/22 15:09:57 drochner 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 */
21double complex cacos(double complex);
22float complex cacosf(float complex);
23
24/* 7.3.5.2 The casin functions */
25double complex casin(double complex);
26float complex casinf(float complex);
27
28/* 7.3.5.1 The catan functions */
29double complex catan(double complex);
30float complex catanf(float complex);
31
32/* 7.3.5.1 The ccos functions */
33double complex ccos(double complex);
34float complex ccosf(float complex);
35
36/* 7.3.5.1 The csin functions */
37double complex csin(double complex);
38float complex csinf(float complex);
39
40/* 7.3.5.1 The ctan functions */
41double complex ctan(double complex);
42float complex ctanf(float complex);
43
44/* 7.3.6 Hyperbolic functions */
45/* 7.3.6.1 The cacosh functions */
46double complex cacosh(double complex);
47float complex cacoshf(float complex);
48
49/* 7.3.6.2 The casinh functions */
50double complex casinh(double complex);
51float complex casinhf(float complex);
52
53/* 7.3.6.3 The catanh functions */
54double complex catanh(double complex);
55float complex catanhf(float complex);
56
57/* 7.3.6.4 The ccosh functions */
58double complex ccosh(double complex);
59float complex ccoshf(float complex);
60
61/* 7.3.6.5 The csinh functions */
62double complex csinh(double complex);
63float complex csinhf(float complex);
64
65/* 7.3.6.6 The ctanh functions */
66double complex ctanh(double complex);
67float complex ctanhf(float complex);
68
69/* 7.3.7 Exponential and logarithmic functions */
70/* 7.3.7.1 The cexp functions */
71double complex cexp(double complex);
72float complex cexpf(float complex);
73
74/* 7.3.7.2 The clog functions */
75double complex clog(double complex);
76float complex clogf(float complex);
77
78/* 7.3.8 Power and absolute-value functions */
79/* 7.3.8.1 The cabs functions */
80#ifndef __LIBM0_SOURCE__
81/* avoid conflict with historical cabs(struct complex) */
82double cabs(double complex) __RENAME(__c99_cabs);
83float cabsf(float complex) __RENAME(__c99_cabsf);
84#endif
85
86/* 7.3.8.2 The cpow functions */
87double complex cpow(double complex, double complex);
88float complex cpowf(float complex, float complex);
89
90/* 7.3.8.3 The csqrt functions */
91double complex csqrt(double complex);
92float complex csqrtf(float complex);
93
94/* 7.3.9 Manipulation functions */
95/* 7.3.9.1 The carg functions */
96double carg(double complex);
97float cargf(float complex);
98
99/* 7.3.9.2 The cimag functions */
100double cimag(double complex);
101float cimagf(float complex);
102long double cimagl(long double complex);
103
104/* 7.3.9.3 The conj functions */
105double complex conj(double complex);
106float complex conjf(float complex);
107long double complex conjl(long double complex);
108
109/* 7.3.9.4 The cproj functions */
110double complex cproj(double complex);
111float complex cprojf(float complex);
112long double complex cprojl(long double complex);
113
114/* 7.3.9.5 The creal functions */
115double creal(double complex);
116float crealf(float complex);
117long double creall(long double complex);
118
119__END_DECLS
120
121#endif	/* ! _COMPLEX_H */
122