source: src/base/math.hpp@ 06e153

Last change on this file since 06e153 was ac6d04, checked in by Julian Iseringhausen <isering@…>, 14 years ago

Merge recent changes of the vmg library into ScaFaCos.

Includes a fix for the communication problems on Jugene.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1666 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**********************************************************************/
2/**
3 ** \file math.hpp
4 **
5 ** \author Julian Iseringhausen
6 **
7 ** \brief Mathematical constants
8 **
9*************************************************************************/
10
11#ifndef MATH_HPP_
12#define MATH_HPP_
13
14namespace VMG
15{
16
17namespace Math
18{
19
20 const double e = 2.7182818284590452354; /* e */
21 const double log2e = 1.4426950408889634074; /* log_2 e */
22 const double log10e = 0.43429448190325182765; /* log_10 e */
23 const double ln2 = 0.69314718055994530942; /* log_e 2 */
24 const double ln10 = 2.30258509299404568402; /* log_e 10 */
25 const double pi = 3.14159265358979323846; /* pi */
26 const double pi_2 = 1.57079632679489661923; /* pi/2 */
27 const double pi_4 = 0.78539816339744830962; /* pi/4 */
28 const double pi_inv = 0.31830988618379067154; /* 1/pi */
29 const double pi_2_inv = 0.63661977236758134308; /* 2/pi */
30 const double sqrtpi_2_inv = 1.12837916709551257390; /* 2/sqrt(pi) */
31 const double sqrt2 = 1.41421356237309504880; /* sqrt(2) */
32 const double sqrt2_inv = 0.70710678118654752440; /* 1/sqrt(2) */
33
34}
35
36}
37
38#endif /* MATH_HPP_ */
Note: See TracBrowser for help on using the repository browser.