home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_07 / MARK_WC2.LZH / INCLUDE / MATH.H < prev    next >
C/C++ Source or Header  |  1988-04-27  |  2KB  |  81 lines

  1. /*
  2.  * math.h -- definitions and declarations for mathematics functions.
  3.  *
  4.  * Copyright (c) 1986-1987, Mark Williams Company, Chicago
  5.  * This file and its contents may not be copied or distributed
  6.  * without permission.
  7.  */
  8.  
  9. /*
  10.  * Definitions used by mathematics functions:
  11.  */
  12. #define HUGE_VAL    1e+37        /* Infinity */
  13. #define L2HUGE_VAL    127.0        /* log2(infinity) */
  14. #define L10P    17            /* log10(precision) */
  15. #define L2L2P    6            /* log2(log2(precision)) */
  16.  
  17. /*
  18.  * Error return values:
  19.  */
  20. #define EBON    0            /* Successful */
  21. #include <errno.h>
  22.  
  23. /*
  24.  * Constants:
  25.  */
  26. #define PI        0.31415926535897932e+01
  27. #define SQRT2        0.14142135623730950e+01
  28. #define LOG2B10        0.30102999566398119e+00
  29. #define LOG10BE        0.23025850929940456e+01
  30. #define LOG10B2        0.33219280948873623e+01
  31. #define LOGEB2        0.14426950408889634e+01
  32.  
  33. /*
  34.  * Complex variables:
  35.  */
  36. typedef struct cpx {
  37.     double    z_r;
  38.     double    z_i;
  39. } CPX;
  40.  
  41. /*
  42.  * Internal functions:
  43.  */
  44. double    _pol();
  45. double    _two();
  46.  
  47. /*
  48.  * Function declarations:
  49.  */
  50. double    acos();
  51. double    asin();
  52. double    atan();
  53. double    atan2();
  54. double    atof();
  55. double    cabs();
  56. double    ceil();
  57. double    cos();
  58. double    cosh();
  59. double    exp();
  60. double    fabs();
  61. double    floor();
  62. double    flt();
  63. double    frexp();
  64. double    hypot();
  65. double    j0();
  66. double    j1();
  67. double    jn();
  68. double    ldexp();
  69. double    log();
  70. double    log10();
  71. double    modf();
  72. double    pow();
  73. double    sin();
  74. double    sinh();
  75. double    sqrt();
  76. double    tan();
  77. double    tanh();
  78. double    two();
  79.  
  80. /* End of math.h */
  81.