home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / famapi.zip / INCLUDE.ZIP / MATH.H < prev    next >
C/C++ Source or Header  |  1993-01-01  |  2KB  |  51 lines

  1. /*
  2.  *      **************************************************************
  3.  *       JdeBP C++ Library Routines      General Public Licence v1.00
  4.  *          Copyright (c) 1991,1992  Jonathan de Boyne Pollard
  5.  *      **************************************************************
  6.  *
  7.  * MATHEMATICAL FUNCTIONS (ANSI)
  8.  *
  9.  */
  10.  
  11. #if !defined(___STDDEF_H_INCLUDED)
  12. #include <_stddef.h>
  13. #endif
  14.  
  15. typedef const union {
  16.     unsigned short W[4];        // For accessing as an array of short
  17.     double D;                   // For accessing as a double
  18. } _DoubleConst;
  19.  
  20. extern "C" {
  21.  
  22. double  _CDECL acos     (double);
  23. double  _CDECL asin     (double);
  24. double  _CDECL atan     (double);
  25. double  _CDECL atan2    (double, double);
  26. double  _CDECL atof     (const char  *);
  27. double  _CDECL ceil     (double);
  28. double  _CDECL cos      (double);
  29. double  _CDECL cosh     (double);
  30. double  _CDECL exp      (double);
  31. double  _CDECL fabs     (double);
  32. double  _CDECL floor    (double);
  33. double  _CDECL fmod     (double, double);
  34. double  _CDECL frexp    (double, int  *);
  35. double  _CDECL ldexp    (double, int);
  36. double  _CDECL log      (double);
  37. double  _CDECL log10    (double);
  38. double  _CDECL modf     (double, double  *);
  39. double  _CDECL pow      (double, double);
  40. double  _CDECL sin      (double);
  41. double  _CDECL sinh     (double);
  42. double  _CDECL sqrt     (double);
  43. double  _CDECL tan      (double);
  44. double  _CDECL tanh     (double);
  45.  
  46. extern _DoubleConst _CDECL  _HugeVal;
  47.  
  48. }
  49.  
  50. #define HUGE_VAL _HugeVal.D
  51.