1 /***************************************************************************
2                                 m_constants.h
3                              -------------------
4                                W. Michael Brown
5 
6   Misc constants
7 
8  __________________________________________________________________________
9     This file is part of the Math Library
10  __________________________________________________________________________
11 
12     begin                : Wed Aug 10 2005
13     copyright            : (C) 2005 by W. Michael Brown
14     email                : wmbrown@sandia.gov
15  ***************************************************************************/
16 
17 /*! \file */
18 
19 #ifndef CONSTANTS_H
20 #define CONSTANTS_H
21 
22 #include <math.h>
23 using namespace std;
24 
25 #define MATHLIB_VER "0.15"
26 
27 #ifndef PI
28 ///\def PI
29 /// pi
30 #define PI 3.1415926535897932384626433832795
31 #endif
32 ///\def TWOPI
33 /// pi*2
34 #define TWOPI 6.2831853071795862
35 ///\def HALFPI
36 /// pi/2
37 #define HALFPI 1.5707963267948966
38 ///\def DEGTORAD
39 /// Convert Degrees to Radians (pi/180)
40 #define DEGTORAD 0.017453292519943295
41 ///\def SQRT_TWO
42 /// sqrt(2.0)
43 #define SQRT_TWO 1.4142135623730951
44 ///\def SQRT_PI
45 /// sqrt(PI)
46 #define SQRT_PI 1.7724538509055159
47 ///\def INF
48 /// Infinity
49 #define INF 1e308
50 ///\def MINUSINF
51 /// Negative infinity
52 #define MINUSINF -1e308
53 
54 #ifndef EPS
55 ///\def EPS
56 /// Small number
57 #define EPS 1e-100
58 #endif
59 
60 /** \mainpage Math Library
61   * \section intro Introduction
62   * Math library with containers and operations for vectors, matrices, graphs,
63   * cartesian coordinates, quaternions, Euler angles, support vector machine
64   * models, etc. **/
65 
66 
67 #endif
68