Project

General

Profile

Statistics
| Revision:

root / lab4 / .minix-src / include / complex.h @ 13

History | View | Annotate | Download (4 KB)

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