1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #ifndef __MATH
- #define __MATH
- #pragma lib "/$M/lib/ape/libap.a"
- #define HUGE_VAL 1.79769313486231e+308
- #ifdef __cplusplus
- extern "C" {
- #endif
- extern double acos(double);
- extern double asin(double);
- extern double atan(double);
- extern double atan2(double, double);
- extern double cos(double);
- extern double sin(double);
- extern double tan(double);
- extern double cosh(double);
- extern double sinh(double);
- extern double tanh(double);
- extern double exp(double);
- extern double frexp(double, int *);
- extern double ldexp(double, int);
- extern double log(double);
- extern double log10(double);
- extern double modf(double, double *);
- extern double pow(double, double);
- extern double sqrt(double);
- extern double ceil(double);
- extern double fabs(double);
- extern double floor(double);
- extern double fmod(double, double);
- extern double NaN(void);
- extern int isNaN(double);
- extern double Inf(int);
- extern int isInf(double, int);
- #ifdef _RESEARCH_SOURCE
- #define Unsigned_Shifts 1
- #define M_E 2.7182818284590452354
- #define M_LOG2E 1.4426950408889634074
- #define M_LOG10E 0.43429448190325182765
- #define M_LN2 0.69314718055994530942
- #define M_LN10 2.30258509299404568402
- #define M_PI 3.14159265358979323846
- #define M_PI_2 1.57079632679489661923
- #define M_PI_4 0.78539816339744830962
- #define M_1_PI 0.31830988618379067154
- #define M_2_PI 0.63661977236758134308
- #define M_2_SQRTPI 1.12837916709551257390
- #define M_SQRT2 1.41421356237309504880
- #define M_SQRT1_2 0.70710678118654752440
- extern double hypot(double, double);
- extern double erf(double);
- extern double erfc(double);
- extern double j0(double);
- extern double y0(double);
- extern double j1(double);
- extern double y1(double);
- extern double jn(int, double);
- extern double yn(int, double);
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|