Numworks Epsilon  1.4.1
Graphing Calculator Operating System
math.c
Go to the documentation of this file.
1 // This file tests that each math fuction links.
2 #include <math.h>
3 
4 int test_fpclassifyf(float x) {
5  return fpclassify(x);
6 }
7 int test_isfinitef(float x) {
8  return isfinite(x);
9 }
10 int test_isnormalf(float x) {
11  return isnormal(x);
12 }
13 int test_isnanf(float x) {
14  return isnan(x);
15 }
16 int test_isinff(float x) {
17  return isinf(x);
18 }
19 
20 float test_acosf(float x) {
21  return acosf(x);
22 }
23 float test_acoshf(float x) {
24  return acoshf(x);
25 }
26 float test_asinf(float x) {
27  return asinf(x);
28 }
29 float test_asinhf(float x) {
30  return asinhf(x);
31 }
32 float test_atanf(float x) {
33  return atanf(x);
34 }
35 float test_atan2f(float y, float x) {
36  return atan2f(y, x);
37 }
38 float test_atanhf(float x) {
39  return atanhf(x);
40 }
41 float test_ceilf(float x) {
42  return ceilf(x);
43 }
44 float test_copysignf(float x, float y) {
45  return copysignf(x, y);
46 }
47 float test_cosf(float x) {
48  return cosf(x);
49 }
50 float test_coshf(float x) {
51  return coshf(x);
52 }
53 float test_expf(float x) {
54  return expf(x);
55 }
56 float test_expm1f(float x) {
57  return expm1f(x);
58 }
59 float test_fabsf(float x) {
60  return fabsf(x);
61 }
62 float test_floorf(float x) {
63  return floorf(x);
64 }
65 float test_fmodf(float x, float y) {
66  return fmodf(x, y);
67 }
68 float test_lgammaf(float x) {
69  return lgammaf(x);
70 }
71 float test_lgammaf_r(float x, int *signgamp) {
72  return lgammaf_r(x, signgamp);
73 }
74 float test_log1pf(float x) {
75  return log1pf(x);
76 }
77 float test_log10f(float x) {
78  return log10f(x);
79 }
80 float test_logf(float x) {
81  return logf(x);
82 }
83 float test_nanf(const char *s) {
84  return nanf(s);
85 }
86 float test_nearbyintf(float x) {
87  return nearbyintf(x);
88 }
89 float test_powf(float x, float y) {
90  return powf(x, y);
91 }
92 float test_roundf(float x) {
93  return roundf(x);
94 }
95 float test_scalbnf(float x, int n) {
96  return scalbnf(x, n);
97 }
98 float test_sinf(float x) {
99  return sinf(x);
100 }
101 float test_sinhf(float x) {
102  return sinhf(x);
103 }
104 float test_sqrtf(float x) {
105  return sqrtf(x);
106 }
107 float test_tanf(float x) {
108  return tanf(x);
109 }
110 float test_tanhf(float x) {
111  return tanhf(x);
112 }
113 
114 int test_fpclassify(double x) {
115  return fpclassify(x);
116 }
117 int test_isfinite(double x) {
118  return isfinite(x);
119 }
120 int test_isnormal(double x) {
121  return isnormal(x);
122 }
123 int test_isnan(double x) {
124  return isnan(x);
125 }
126 int test_isinf(double x) {
127  return isinf(x);
128 }
129 
130 double test_acos(double x) {
131  return acos(x);
132 }
133 double test_acosh(double x) {
134  return acosh(x);
135 }
136 double test_asin(double x) {
137  return asin(x);
138 }
139 double test_asinh(double x) {
140  return asinh(x);
141 }
142 double test_atan(double x) {
143  return atan(x);
144 }
145 double test_atanh(double x) {
146  return atanh(x);
147 }
148 double test_ceil(double x) {
149  return ceil(x);
150 }
151 double test_copysign(double x, double y) {
152  return copysign(x, y);
153 }
154 double test_cos(double x) {
155  return cos(x);
156 }
157 double test_cosh(double x) {
158  return cosh(x);
159 }
160 double test_exp(double x) {
161  return exp(x);
162 }
163 double test_expm1(double x) {
164  return expm1(x);
165 }
166 double test_fabs(double x) {
167  return fabs(x);
168 }
169 double test_floor(double x) {
170  return floor(x);
171 }
172 double test_lgamma(double x) {
173  return lgamma(x);
174 }
175 double test_lgamma_r(double x, int *signgamp) {
176  return lgamma_r(x, signgamp);
177 }
178 double test_log1p(double x) {
179  return log1p(x);
180 }
181 double test_log10(double x) {
182  return log10(x);
183 }
184 double test_log(double x) {
185  return log(x);
186 }
187 double test_pow(double x, double y) {
188  return pow(x, y);
189 }
190 double test_round(double x) {
191  return round(x);
192 }
193 double test_scalbn(double x, int n) {
194  return scalbn(x, n);
195 }
196 double test_sin(double x) {
197  return sin(x);
198 }
199 double test_sinh(double x) {
200  return sinh(x);
201 }
202 double test_sqrt(double x) {
203  return sqrt(x);
204 }
205 double test_tan(double x) {
206  return tan(x);
207 }
208 double test_tanh(double x) {
209  return tanh(x);
210 }
float test_copysignf(float x, float y)
Definition: math.c:44
double test_pow(double x, double y)
Definition: math.c:187
float test_roundf(float x)
Definition: math.c:92
#define exp(x)
Definition: math.h:176
#define log1pf(x)
Definition: math.h:148
double test_acos(double x)
Definition: math.c:130
#define scalbn(x, n)
Definition: math.h:193
#define acosh(x)
Definition: math.h:164
#define log1p(x)
Definition: math.h:185
double test_atan(double x)
Definition: math.c:142
float test_expf(float x)
Definition: math.c:53
#define copysign(x, y)
Definition: math.h:171
#define isfinite(x)
Definition: math.h:41
#define log10f(x)
Definition: math.h:149
float test_expm1f(float x)
Definition: math.c:56
float test_logf(float x)
Definition: math.c:80
#define floorf(x)
Definition: math.h:142
#define isinf(x)
Definition: math.h:44
float test_sinhf(float x)
Definition: math.c:101
float test_acosf(float x)
Definition: math.c:20
float test_floorf(float x)
Definition: math.c:62
float test_asinhf(float x)
Definition: math.c:29
#define fabsf(x)
Definition: math.h:141
double test_acosh(double x)
Definition: math.c:133
#define lgamma_r(x, signgamp)
Definition: math.h:183
double test_fabs(double x)
Definition: math.c:166
double test_lgamma(double x)
Definition: math.c:172
#define isnormal(x)
Definition: math.h:42
#define expm1f(x)
Definition: math.h:140
#define lgammaf(x)
Definition: math.h:146
double test_lgamma_r(double x, int *signgamp)
Definition: math.c:175
#define lgamma(x)
Definition: math.h:182
double test_exp(double x)
Definition: math.c:160
float test_sqrtf(float x)
Definition: math.c:104
#define coshf(x)
Definition: math.h:138
#define atanhf(x)
Definition: math.h:134
#define copysignf(x, y)
Definition: math.h:136
#define logf(x)
Definition: math.h:150
#define atan(x)
Definition: math.h:167
#define tanf(x)
Definition: math.h:159
int test_isnormal(double x)
Definition: math.c:120
float test_atanhf(float x)
Definition: math.c:38
int test_isnormalf(float x)
Definition: math.c:10
#define expf(x)
Definition: math.h:139
#define powf(x, y)
Definition: math.h:153
float test_cosf(float x)
Definition: math.c:47
double test_log10(double x)
Definition: math.c:181
#define fabs(x)
Definition: math.h:178
#define cosf(x)
Definition: math.h:137
float test_nearbyintf(float x)
Definition: math.c:86
#define asin(x)
Definition: math.h:165
int test_isnan(double x)
Definition: math.c:123
double test_sinh(double x)
Definition: math.c:199
double test_ceil(double x)
Definition: math.c:148
#define fpclassify(x)
Definition: math.h:38
double test_expm1(double x)
Definition: math.c:163
double test_asin(double x)
Definition: math.c:136
float test_acoshf(float x)
Definition: math.c:23
#define atanf(x)
Definition: math.h:132
double test_sqrt(double x)
Definition: math.c:202
float test_tanf(float x)
Definition: math.c:107
#define sinhf(x)
Definition: math.h:157
float test_lgammaf(float x)
Definition: math.c:68
#define sin(x)
Definition: math.h:194
double test_copysign(double x, double y)
Definition: math.c:151
float test_powf(float x, float y)
Definition: math.c:89
#define sqrtf(x)
Definition: math.h:158
#define log(x)
Definition: math.h:184
#define acoshf(x)
Definition: math.h:129
float test_scalbnf(float x, int n)
Definition: math.c:95
double test_log(double x)
Definition: math.c:184
#define atan2f(y, x)
Definition: math.h:133
#define round(x)
Definition: math.h:192
#define atanh(x)
Definition: math.h:169
double test_round(double x)
Definition: math.c:190
#define pow(x, y)
Definition: math.h:190
#define cos(x)
Definition: math.h:172
float test_fabsf(float x)
Definition: math.c:59
float test_asinf(float x)
Definition: math.c:26
double test_cos(double x)
Definition: math.c:154
int test_isfinitef(float x)
Definition: math.c:7
#define tanh(x)
Definition: math.h:198
float test_tanhf(float x)
Definition: math.c:110
#define log10(x)
Definition: math.h:186
#define ceil(x)
Definition: math.h:170
int test_isnanf(float x)
Definition: math.c:13
#define sinh(x)
Definition: math.h:195
#define isnan(x)
Definition: math.h:43
float test_sinf(float x)
Definition: math.c:98
float test_nanf(const char *s)
Definition: math.c:83
#define sinf(x)
Definition: math.h:156
double test_log1p(double x)
Definition: math.c:178
float test_fmodf(float x, float y)
Definition: math.c:65
int test_isfinite(double x)
Definition: math.c:117
#define asinf(x)
Definition: math.h:130
#define fmodf(x, y)
Definition: math.h:143
float test_lgammaf_r(float x, int *signgamp)
Definition: math.c:71
int test_fpclassifyf(float x)
Definition: math.c:4
double test_sin(double x)
Definition: math.c:196
#define acos(x)
Definition: math.h:163
#define acosf(x)
Definition: math.h:128
#define roundf(x)
Definition: math.h:154
double test_scalbn(double x, int n)
Definition: math.c:193
#define nearbyintf(x)
Definition: math.h:152
float test_log1pf(float x)
Definition: math.c:74
double test_floor(double x)
Definition: math.c:169
double test_atanh(double x)
Definition: math.c:145
double test_tanh(double x)
Definition: math.c:208
double test_cosh(double x)
Definition: math.c:157
#define cosh(x)
Definition: math.h:173
#define asinh(x)
Definition: math.h:166
float test_atan2f(float y, float x)
Definition: math.c:35
int test_isinff(float x)
Definition: math.c:16
float test_coshf(float x)
Definition: math.c:50
float test_atanf(float x)
Definition: math.c:32
float test_ceilf(float x)
Definition: math.c:41
#define nanf(s)
Definition: math.h:151
#define floor(x)
Definition: math.h:179
#define asinhf(x)
Definition: math.h:131
#define expm1(x)
Definition: math.h:177
double test_tan(double x)
Definition: math.c:205
float test_log10f(float x)
Definition: math.c:77
#define sqrt(x)
Definition: math.h:196
#define lgammaf_r(x, signgamp)
Definition: math.h:147
double test_asinh(double x)
Definition: math.c:139
#define tanhf(x)
Definition: math.h:160
int test_isinf(double x)
Definition: math.c:126
int test_fpclassify(double x)
Definition: math.c:114
#define tan(x)
Definition: math.h:197
#define ceilf(x)
Definition: math.h:135
#define scalbnf(x, n)
Definition: math.h:155