home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 41 / IOPROG_41.ISO / soft / c++ / NUMCPP11.ZIP / numerics.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-28  |  1.4 KB  |  58 lines

  1. //===================================================================
  2. // numerics.h
  3. //
  4. // Version 1.1
  5. //
  6. // Written by:
  7. //   Brent Worden
  8. //   WordenWare
  9. //   email:  Brent@Worden.org
  10. //
  11. // Copyright (c) 1998-1999 WordenWare
  12. //
  13. // Created:  August 28, 1998
  14. // Revised:  April 10, 1999
  15. //===================================================================
  16.  
  17. #ifndef _NUMERICS_H_
  18. #define _NUMERICS_H_
  19.  
  20. #ifndef NO_NUMERICS_DLL
  21.     #define NUMERICS_EXPORT extern "C" __declspec (dllexport)
  22. #else
  23.     #define NUMERICS_EXPORT
  24. #endif
  25.  
  26. #ifndef NO_NUMERICS_NAMESPACE
  27.     #define NUM_BEGIN namespace Numerics_1_1 {
  28.     #define NUM_END   }
  29. #else
  30.     #define NUM_BEGIN 
  31.     #define NUM_END   
  32. #endif
  33.  
  34. #include <cfloat>
  35.  
  36. NUM_BEGIN
  37.  
  38. static const double NUMERICS_PI        = 3.14159265358979323846;
  39. static const double NUMERICS_E         = 2.71828182845904523536;
  40. static const double NUMERICS_EULER     = 0.5772156649;
  41. static const int    NUMERICS_ITMAX     = 100;
  42. static const double NUMERICS_MAX_ERROR = 5.0e-9;
  43. static const double NUMERICS_FLOAT_MIN = DBL_MIN;
  44. static const double NUMERICS_FLOAT_MAX = DBL_MAX;
  45.  
  46. NUM_END
  47.  
  48. namespace num = Numerics_1_1;
  49.  
  50. #endif
  51.  
  52. //===================================================================
  53. // Revision History
  54. //
  55. // Version 1.0 - 08/28/1998 - New.
  56. // Version 1.1 - 04/10/1999 - Added Numerics namespace.
  57. //===================================================================
  58.