23 template<
class Field >
42 static const T
e = exp( T( 1 ) );
49 static const T
pi = acos( T( -1 ) );
99 enum { factorial = 1 };
115 return std::complex<K>(c.real(),-c.imag());
123 return (val < 0 ? -1 : 1);
128 #endif // #ifndef DUNE_MATH_HH Provides commonly used mathematical constants.
Definition: math.hh:24
K conjugateComplex(const K &x)
compute conjugate complex of x
Definition: math.hh:105
int sign(const T &val)
Return the sign of the value.
Definition: math.hh:121
Calculates the factorial of m at compile time.
Definition: math.hh:88
static const T pi()
Definition: math.hh:46
Dune namespace.
Definition: alignedallocator.hh:9
Standard implementation of MathematicalConstants.
Definition: math.hh:37
static const T e()
Definition: math.hh:39