23 template<
class Field >
41 static const T e = std::exp( T( 1 ) );
47 static const T pi = std::acos( T( -1 ) );
68 struct MathematicalConstants< double >
69 :
public StandardMathematicalConstants< double >
78 struct MathematicalConstants< long double >
79 :
public StandardMathematicalConstants< long double >
89 enum { factorial = m *
Factorial<m-1>::factorial };
97 enum { factorial = 1 };
113 return std::complex<K>(c.real(),-c.imag());
121 return (val < 0 ? -1 : 1);
Dune namespace.
Definition: alignment.hh:10
int sign(const T &val)
Return the sign of the value.
Definition: math.hh:119
K conjugateComplex(const K &x)
compute conjugate complex of x
Definition: math.hh:103
Calculates the factorial of m at compile time.
Definition: math.hh:87
Provides commonly used mathematical constants.
Definition: math.hh:24
Standard implementation of MathematicalConstants.
Definition: math.hh:38