Rev 9772 | Rev 9811 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8687 | turbocat | 1 | /* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */ |
2 | /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */ |
||
3 | /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
||
4 | #ifndef _MATH_H_ |
||
5 | #define _MATH_H_ |
||
6 | |||
7 | #include |
||
8 | |||
9810 | Coldy | 9 | DLLAPI double acos(double _x); |
10 | DLLAPI double asin(double _x); |
||
11 | DLLAPI double atan(double _x); |
||
12 | DLLAPI double atan2(double _y, double _x); |
||
13 | DLLAPI double ceil(double _x); |
||
14 | DLLAPI double cos(double _x); |
||
15 | DLLAPI double cosh(double _x); |
||
16 | DLLAPI double exp(double _x); |
||
17 | DLLAPI double fabs(double _x); |
||
18 | DLLAPI double floor(double _x); |
||
19 | DLLAPI double fmod(double _x, double _y); |
||
20 | DLLAPI double frexp(double _x, int* _pexp); |
||
21 | DLLAPI double ldexp(double _x, int _exp); |
||
22 | DLLAPI double log(double _y); |
||
23 | DLLAPI double log2(double _x); |
||
24 | DLLAPI double log10(double _x); |
||
25 | DLLAPI double modf(double _x, double* _pint); |
||
26 | DLLAPI double pow(double _x, double _y); |
||
27 | DLLAPI double round(double _x); |
||
28 | DLLAPI double sin(double _x); |
||
29 | DLLAPI double sinh(double _x); |
||
30 | DLLAPI double sqrt(double _x); |
||
31 | DLLAPI double tan(double _x); |
||
32 | DLLAPI double tanh(double _x); |
||
33 | DLLAPI double acosh(double); |
||
34 | DLLAPI double asinh(double); |
||
35 | DLLAPI double atanh(double); |
||
36 | DLLAPI double hypot(double, double); |
||
37 | DLLAPI long double modfl(long double _x, long double* _pint); |
||
38 | DLLAPI double pow10(double _x); |
||
39 | DLLAPI double pow2(double _x); |
||
8687 | turbocat | 40 | |
9766 | turbocat | 41 | #define M_E 2.7182818284590452354 |
42 | #define M_LOG2E 1.4426950408889634074 |
||
43 | #define M_LOG10E 0.43429448190325182765 |
||
44 | #define M_LN2 0.69314718055994530942 |
||
45 | #define M_LN10 2.30258509299404568402 |
||
46 | #define M_PI 3.14159265358979323846 |
||
47 | #define M_PI_2 1.57079632679489661923 |
||
48 | #define M_PI_4 0.78539816339744830962 |
||
49 | #define M_1_PI 0.31830988618379067154 |
||
50 | #define M_2_PI 0.63661977236758134308 |
||
51 | #define M_2_SQRTPI 1.12837916709551257390 |
||
52 | #define M_SQRT2 1.41421356237309504880 |
||
53 | #define M_SQRT1_2 0.70710678118654752440 |
||
54 | #define PI M_PI |
||
55 | #define PI2 M_PI_2 |
||
8687 | turbocat | 56 | |
57 | struct exception { |
||
9766 | turbocat | 58 | int type; |
59 | const char* name; |
||
60 | double arg1; |
||
61 | double arg2; |
||
62 | double retval; |
||
63 | int err; |
||
8687 | turbocat | 64 | }; |
65 | |||
9772 | vitalkrilo | 66 | #endif /* _MATH_H_ */ |