30 #ifndef AMATH_LIB_REAL_H 31 #define AMATH_LIB_REAL_H 49 #define PI 3.1415926535897932384626433832795028841971693994
50 #define EULERS 2.7182818284590452353602874713526624977572470937
51 #define INFP 0x7FF0000000000000ull
52 #define INFN 0xFFF0000000000000ull
53 #define NAN 0x7FFFFFFFFFFFFFFFull
54 #define sgn(x) (x > 0
? 1
: x < 0
? -1
: 0
) 55 #define abs(x) (x > 0
? x : -x) 61 double fabs(
double x);
62 double ceil(
double x);
63 double floor(
double x);
64 double round(
double x);
65 double trunc(
double x);
67 double sqrt(
double x);
68 double cbrt(
double x);
70 double log10(
double x);
81 double acos(
double x);
82 double asin(
double x);
83 double atan(
double x);
84 double asec(
double x);
85 double acsc(
double x);
86 double acot(
double x);
87 double aexs(
double x);
88 double aexc(
double x);
89 double acrd(
double x);
91 double cosh(
double x);
92 double sinh(
double x);
93 double tanh(
double x);
94 double sech(
double x);
95 double csch(
double x);
96 double coth(
double x);
97 double acosh(
double x);
98 double asinh(
double x);
99 double atanh(
double x);
100 double asech(
double x);
101 double acsch(
double x);
102 double acoth(
double x);
104 double ver(
double x);
105 double vcs(
double x);
106 double cvs(
double x);
107 double cvc(
double x);
109 double hvc(
double x);
110 double hcv(
double x);
111 double hcc(
double x);
112 double aver(
double x);
113 double avcs(
double x);
114 double acvs(
double x);
115 double acvc(
double x);
116 double ahv(
double x);
117 double ahvc(
double x);
118 double ahcv(
double x);
119 double ahcc(
double x);
121 double pow(
double x,
double y);
122 double fmod(
double x,
double y);
123 double atan2(
double y,
double x);
124 double hypot(
double x,
double y);
125 double log2p(
double x,
double y);
126 double log1p(
double x);
127 double expm1(
double x);
128 double scalbn(
double x,
int n);
129 double copysign(
double x,
double y);
130 int rempio2(
double x,
double* y);
131 unsigned int log2i(
unsigned int x);
double sech(double x)
Hyperbolic secant function.
double hcc(double x)
Hacoversed cosine function.
double ahcc(double x)
Inverse hacoversed cosine.
double cvs(double x)
Coversed sine function.
double acvs(double x)
Inverse coversed sine function.
double acot(double x)
Inverse cotangent function.
double exc(double x)
Excosecant function.
double ver(double x)
Versed sine function.
double hv(double x)
Haversed sine function.
double crd(double x)
Chord function.
double acsch(double x)
Inverse hyperbolic cosecant function.
double cot(double x)
Cotangent function.
double asech(double x)
Inverse hyperbolic secant function.
double csch(double x)
Hyperbolic cosecant function.
double sec(double x)
Secant function.
double ahvc(double x)
Inverse haversed cosine.
double coth(double x)
Hyperbolic cotangent function.
unsigned int log2i(unsigned int x)
double acsc(double x)
Inverse cosecant function.
double asec(double x)
Inverse secant function.
double acrd(double x)
Inverse chord function.
double aexc(double x)
Inverse excosecant function.
double log2p(double x, double y)
double acoth(double x)
Inverse hyperbolic cotangent function.
double acvc(double x)
Inverse versed cosine.
double aexs(double x)
Inverse exsecant function.
double aver(double x)
Inverse versed sine function.
double hvc(double x)
Haversed cosine function.
double vcs(double x)
Versed cosine function.
double hcv(double x)
Hacoversed sine function.
double avcs(double x)
Inverse versed sine.
int32_t rempio2(double x, double *y)
double cvc(double x)
Coversed cosine function.
double csc(double x)
Cosecant function.
double ahv(double x)
Inverse haversed sine.
double exs(double x)
Exsecant function.
double ahcv(double x)
Inverse hacoversed sine.