/* Constants for the Mathlib library */ #define THREEPI 9.424777960769379715387930 #define TWOPI 6.283185307179586476925287 #define PI 3.141592653589793238462643 #define PID2 1.570796326794896619231322 #define PID3 1.047197551196397746154214 #define PID4 0.7853981633974483096156608 #define PID6 0.523598776 #define PIPI 9.869604401089358618834491 #define E 2.718281828459045235360287 #define GAMMA 0.5772156649015328606065120 #define LOG2 0.3010299956639811952137389 #define LOG3 0.4772112547196624372950279 #define LOGPI 0.4971498726941338543512683 #define LOGE 0.4342944819032518276511289 #define LOG2E 1.4426950408889634073 #define LN2 0.6931471805599453094172321 #define LN3 1.098612288668109691395245 #define LNPI 1.144729885849400174143427 #define LNSQRT2 0.3465735902799726547 #define LNGAMMA -0.549539293981644822337662 #define SQRT2 1.4142135623730950488 #define SQRT3 1.7320508075688772935 #define SQRT5 2.2360679774997896964 #define SQRT7 2.6457513110645905905 #define SQRTPI 1.772453850905516027298167 #define MAXPOSDBL 1.79e+308 /* largest possible double */ #define LN_MAXPOSDBL 709.778 /* natural log of MAXPOSDBL */ #define MINPOSDBL 2.2e-308 /* smallest possible positive double */ #define LN_MINPOSDBL (-708.396) /* natural log of MINPOSDBL */ #define X6_UNDERFLOWS 0.53e-51 /* x**6 underflows */ #define X16_UNDERFLOW 0.59e-19 /* x**16 underflows */ #define SQRT_ITERATIONS 5 /* iterations for sqrt function */