23 template<
class Field >
41 static const T
e = std::exp( T( 1 ) );
47 static const T
pi = std::acos( T( -1 ) );
97 enum { factorial = 1 };
113 return std::complex<K>(c.real(),-c.imag());
121 return (val < 0 ? -1 : 1);
126 #endif // #ifndef DUNE_MATH_HH static T e()
Definition: math.hh:39
Provides commonly used mathematical constants.
Definition: math.hh:24
Calculates the factorial of m at compile time.
Definition: math.hh:86
Dune namespace.
Definition: alignment.hh:10
K conjugateComplex(const K &x)
compute conjugate complex of x
Definition: math.hh:103
static T pi()
Definition: math.hh:45
Standard implementation of MathematicalConstants.
Definition: math.hh:37
int sign(const T &val)
Return the sign of the value.
Definition: math.hh:119