Subversion Repositories Kolibri OS

Rev

Rev 9766 | Rev 9810 | 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
 
9766 turbocat 9
extern double _FUNC(acos)(double _x);
10
extern double _FUNC(asin)(double _x);
11
extern double _FUNC(atan)(double _x);
12
extern double _FUNC(atan2)(double _y, double _x);
13
extern double _FUNC(ceil)(double _x);
14
extern double _FUNC(cos)(double _x);
15
extern double _FUNC(cosh)(double _x);
16
extern double _FUNC(exp)(double _x);
17
extern double _FUNC(fabs)(double _x);
18
extern double _FUNC(floor)(double _x);
19
extern double _FUNC(fmod)(double _x, double _y);
20
extern double _FUNC(frexp)(double _x, int* _pexp);
21
extern double _FUNC(ldexp)(double _x, int _exp);
22
extern double _FUNC(log)(double _y);
9772 vitalkrilo 23
extern double _FUNC(log2)(double _x);
9766 turbocat 24
extern double _FUNC(log10)(double _x);
25
extern double _FUNC(modf)(double _x, double* _pint);
26
extern double _FUNC(pow)(double _x, double _y);
9772 vitalkrilo 27
extern double _FUNC(round)(double _x);
9766 turbocat 28
extern double _FUNC(sin)(double _x);
29
extern double _FUNC(sinh)(double _x);
30
extern double _FUNC(sqrt)(double _x);
31
extern double _FUNC(tan)(double _x);
32
extern double _FUNC(tanh)(double _x);
33
extern double _FUNC(acosh)(double);
34
extern double _FUNC(asinh)(double);
35
extern double _FUNC(atanh)(double);
36
extern double _FUNC(hypot)(double, double);
37
extern long double _FUNC(modfl)(long double _x, long double* _pint);
38
extern double _FUNC(pow10)(double _x);
39
extern double _FUNC(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_ */