-
Notifications
You must be signed in to change notification settings - Fork 0
/
blMathConstants.hpp
60 lines (43 loc) · 1.86 KB
/
blMathConstants.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef BL_MATHCONSTANTS_HPP
#define BL_MATHCONSTANTS_HPP
///-------------------------------------------------------------------
///
///
///
/// PURPOSE: A collection of mathematical constants
// that come up often in problems
///
/// AUTHOR: Vincenzo Barbato
///
/// NOTE: All things in this library are defined within the
/// blMathAPI namespace
///
/// LISENSE: MIT-LICENCE
/// http:https://www.opensource.org/licenses/mit-license.php
///
///
///
///-------------------------------------------------------------------
//-------------------------------------------------------------------
// NOTE: This class is defined within the blMathAPI namespace
//-------------------------------------------------------------------
namespace blMathAPI
{
//-------------------------------------------------------------------
//-------------------------------------------------------------------
// Mathematical constants
//-------------------------------------------------------------------
static const double pi = 3.1415926535897932384626433832795;
static const double e = 2.718281828459045235360287471352662497757;
//-------------------------------------------------------------------
//-------------------------------------------------------------------
// Physical constants
//-------------------------------------------------------------------
static const double R = 8.31447215; // Universal Gas Constant (J/K*moles)
//-------------------------------------------------------------------
//-------------------------------------------------------------------
// End of the blMathAPI namespace
}
//-------------------------------------------------------------------
#endif // BL_MATHCONSTANTS_HPP