antioch-0.4.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
utilities
include
antioch
math_constants.h
Go to the documentation of this file.
1
//-----------------------------------------------------------------------bl-
2
//--------------------------------------------------------------------------
3
//
4
// Antioch - A Gas Dynamics Thermochemistry Library
5
//
6
// Copyright (C) 2014-2016 Paul T. Bauman, Benjamin S. Kirk,
7
// Sylvain Plessis, Roy H. Stonger
8
//
9
// Copyright (C) 2013 The PECOS Development Team
10
//
11
// This library is free software; you can redistribute it and/or
12
// modify it under the terms of the Version 2.1 GNU Lesser General
13
// Public License as published by the Free Software Foundation.
14
//
15
// This library is distributed in the hope that it will be useful,
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
// Lesser General Public License for more details.
19
//
20
// You should have received a copy of the GNU Lesser General Public
21
// License along with this library; if not, write to the Free Software
22
// Foundation, Inc. 51 Franklin Street, Fifth Floor,
23
// Boston, MA 02110-1301 USA
24
//
25
//-----------------------------------------------------------------------el-
26
27
#ifndef ANTIOCH_MATH_CONSTANTS_H
28
#define ANTIOCH_MATH_CONSTANTS_H
29
30
#include <cmath>
31
32
namespace
Antioch
33
{
34
namespace
Constants
35
{
39
template
<
typename
CoeffType>
40
inline
41
CoeffType
log10_to_log
()
42
{
43
return
1.0L/std::log(10.0L);
44
}
45
49
template
<
typename
CoeffType>
50
inline
51
CoeffType
pi
()
52
{
53
static
const
CoeffType my_pi = std::atan(CoeffType(1))*4;
54
return
my_pi;
55
}
56
57
}
// end namespace Constants
58
}
// end namespace Antioch
59
60
#endif //ANTIOCH_MATH_CONSTANTS_H
Antioch::Constants::log10_to_log
CoeffType log10_to_log()
1/ln(10)
Definition:
math_constants.h:41
Antioch
The parameters are reduced parameters.
Definition:
chemical_mixture.h:47
Antioch::Constants::pi
CoeffType pi()
pi
Definition:
math_constants.h:51
Generated on Thu Jul 7 2016 11:09:46 for antioch-0.4.0 by
doxygen
1.8.8