arm64: Improve constant generation, with tests.
[tinycc.git] / tests / tests2 / 24_math_library.c
blob514a25f63815d8c8fbf21b93c09586b879e8f496
1 #define _ISOC99_SOURCE 1
3 #include <stdio.h>
4 #include <math.h>
6 int main()
8 printf("%f\n", sin(0.12));
9 printf("%f\n", cos(0.12));
10 printf("%f\n", tan(0.12));
11 printf("%f\n", asin(0.12));
12 printf("%f\n", acos(0.12));
13 printf("%f\n", atan(0.12));
14 printf("%f\n", sinh(0.12));
15 printf("%f\n", cosh(0.12));
16 printf("%f\n", tanh(0.12));
17 printf("%f\n", exp(0.12));
18 printf("%f\n", fabs(-0.12));
19 printf("%f\n", log(0.12));
20 printf("%f\n", log10(0.12));
21 printf("%f\n", pow(0.12, 0.12));
22 printf("%f\n", sqrt(0.12));
23 printf("%f\n", round(12.34));
24 printf("%f\n", ceil(12.34));
25 printf("%f\n", floor(12.34));
27 return 0;
30 /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/