home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff314.lha / zc / zc.lzh / include / math.h < prev    next >
C/C++ Source or Header  |  1988-07-18  |  2KB  |  64 lines

  1. extern double    modf();        /* Integer and remainder            */
  2. extern double    ldexp();    /* load the exponent                */
  3. extern double    frexp();    /* retrieve the exponent            */
  4.  
  5. extern double    acos();        /* inverse trigonometric function    */
  6. extern double    asin();        /* inverse trigonometric function     */
  7. extern double    atan();        /* inverse trigonometric function    */
  8. extern double    atan2();    /* inverse trigonometric function     */
  9. extern double    cos();        /* trigonometric function            */
  10. extern double    sin();        /* trigonometric function            */
  11. extern double    tan();        /* trigonometric function            */
  12.  
  13. extern double    acosh();    /* inverse hyperbolic function        */
  14. extern double    asinh();    /* inverse hyperbolic function        */
  15. extern double    atanh();    /* inverse hyperbolic function        */
  16.  
  17. extern double    cosh();        /* hyperbolic function                */
  18. extern double    tanh();        /* hyperbolic function                 */
  19. extern double    sinh();        /* hyperbolic function                */
  20.  
  21. extern double    cabs();        /* complex absolute value            */
  22.  
  23. extern double    cbrt();        /* cube root                        */
  24. extern double    sqrt();        /* square root                        */
  25. extern double    hypot();    /* Euclidean distance                */
  26.  
  27. extern double    fabs();        /* absolute value                    */
  28. extern double    floor();    /* integer no greater than            */
  29. extern double    ceil();        /* integer no less than                */
  30. extern double    rint();        /* round to nearest integer            */
  31.  
  32. extern double    drem();        /* remainder                        */
  33. extern double    copysign();    /* copy sign bit                    */
  34. extern double    logb();        /* exponent extraction                */
  35. extern double    scalb();    /* exponent adjustment                */
  36.  
  37. extern double    exp();        /* exponential                        */
  38. extern double    expm1();    /* exp(x)-1                            */
  39. extern double    log();        /* natural logarithm                */
  40. extern double    log10();    /* logarithm to base 10                */
  41. extern double    log1p();    /* log(1+x)                            */
  42. extern double    pow();        /* exponential x**y                    */
  43.  
  44. #ifndef MAXDOUBLE
  45.  
  46. #define BITS(type)    (8 * (int)sizeof(type))
  47.  
  48. #define MAXDOUBLE    1.79769313486231470e+308
  49. #define MAXFLOAT    ((float)3.40282346638528860e+38)
  50. #define MINDOUBLE    4.94065645841246544e-324
  51. #define MINFLOAT    ((float)1.40129846432481707e-45)
  52.  
  53. #define DMINEXP    (-(DMAXEXP + DSIGNIF - 4))
  54. #define FMINEXP    (-(FMAXEXP + FSIGNIF - 4))
  55.  
  56. #define DSIGNIF    (BITS(double)-11)
  57. #define FSIGNIF    (BITS(float)-8)
  58.  
  59. #define DMAXEXP    (1 << 11 - 1)
  60. #define FMAXEXP    (1 << 8 - 1)
  61.  
  62. #endif
  63.  
  64.