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 pi()
Definition: math.hh:45
Calculates the factorial of m at compile time.
Definition: math.hh:86
static T e()
Definition: math.hh:39
Standard implementation of MathematicalConstants.
Definition: math.hh:37
Provides commonly used mathematical constants.
Definition: math.hh:24
int sign(const T &val)
Return the sign of the value.
Definition: math.hh:119
char c
Definition: alignment.hh:33
K conjugateComplex(const K &x)
compute conjugate complex of x
Definition: math.hh:103
Dune namespace.
Definition: alignment.hh:9