/*\____________________________________› *› * File: MATH.H› *› * Function declarations, FP constants,› *  Error codes...› *› * By Duane Tribe 4/29/90› * ____________________________________› *› * To DEFINE extended FP constants,› * #define FP_CDEF before this file.› *› * To REFERENCE extended FP contants› * defined in another file, #define› * FP_CREF before this file.›\*/››/* Useful built-in FP constants */››extern char *M_0;     /* 0.0         */›extern char *M_1;     /* 1.0         */›extern char *M_2;     /* 2.0         */›extern char *M_10;    /* 10.0        */›extern char *M_N1;    /* -1.0        */›extern char *M_P5;    /* 0.5         */›extern char *M_E;     /* 2.718281828 */›extern char *M_PI;    /* 3.141592654 */›extern char *M_2PI;   /* 6.283185308 */››/* Other optional constants */››#ifdef FP_CDEF››char M_LOG2E[6] =      /* 1.44269504 */›{ 0x40, 0x01, 0x44, 0x26, 0x95, 0x04 };››char M_LOG10E[6] =   /* 0.4342944819 */›{ 0x3F, 0x43, 0x42, 0x94, 0x48, 0x19 };››char M_LN2[6] =      /* 0.6931471806 */›{ 0x3F, 0x69, 0x31, 0x47, 0x18, 0x06 };››char M_LN10[6] =       /* 2.30258509 */›{ 0x40, 0x02, 0x30, 0x25, 0x85, 0x09 };››char M_PI_2[6] =       /* 1.57079632 */›{ 0x40, 0x01, 0x57, 0x07, 0x96, 0x32 };››char M_PI_4[6] =     /* 0.7853981634 */›{ 0x3F, 0x78, 0x53, 0x98, 0x16, 0x34 };››char M_1_PI[6] =     /* 0.3183098862 */›{ 0x3F, 0x31, 0x83, 0x09, 0x88, 0x62 };››char M_2_PI[6] =     /* 0.6366197724 */›{ 0x3F, 0x63, 0x66, 0x19, 0x77, 0x24 };››char M_2_SQRTPI[6] =  /* 1.128379167 */›{ 0x40, 0x01, 0x12, 0x83, 0x79, 0x16 };››char M_SQRT2[6] =      /* 1.41421356 */›{ 0x40, 0x01, 0x41, 0x42, 0x13, 0x56 };››char M_SQRT1_2[6] =  /* 0.7071067812 */›{ 0x3F, 0x70, 0x71, 0x06, 0x78, 0x12 };››char M_MIN[6] =             /* 1E-98 */›{ 0x0F, 0x01, 0x00, 0x00, 0x00, 0x00 };››char M_MAX[6] =    /* 9.999999999E99 */›{ 0x71, 0x99, 0x99, 0x99, 0x99, 0x90 };››char M_EPSILON[6] =          /* 1E-9 */›{ 0x3B, 0x10, 0x00, 0x00, 0x00, 0x00 };››#endif››#ifdef FP_CREF››extern char M_LOG2E[6],    M_LOG10E[6];›extern char M_LN2[6],      M_LN10[6];›extern char M_PI_2[6],     M_PI_4[6];›extern char M_1_PI[6],     M_2_PI[6];›extern char M_2_SQRTPI[6], M_SQRT2[6];›extern char M_SQRT1_2[6],  M_MIN[6];›extern char M_EPSILON[6],  M_MAX[6];›   ›#endif››/* FP error handling */››struct exception›{›  int type, name;›};››#define DOMAIN    1›#define RANGE     2››/* End of MATH.H› */›