23 template<
class Field >
41 static const T
e = std::exp( T( 1 ) );
47 static const T
pi = std::acos( T( -1 ) );
58 struct MathematicalConstants< float >
59 :
public StandardMathematicalConstants< float >
68 struct MathematicalConstants< double >
69 :
public StandardMathematicalConstants< double >
78 struct MathematicalConstants< long double >
79 :
public StandardMathematicalConstants< long double >
113 return std::complex<K>(c.real(),-c.imag());
121 return (val < 0 ? -1 : 1);
126 #endif // #ifndef DUNE_MATH_HH
char c
Definition: alignment.hh:37
Standard implementation of MathematicalConstants.
Definition: math.hh:37
Provides commonly used mathematical constants.
Definition: math.hh:24
static T pi()
Definition: math.hh:45
Calculates the factorial of m at compile time.
Definition: math.hh:86
static T e()
Definition: math.hh:39
K conjugateComplex(const K &x)
compute conjugate complex of x
Definition: math.hh:103
int sign(const T &val)
Return the sign of the value.
Definition: math.hh:119