23 template<
class Field >
42 static const T e = exp( T( 1 ) );
49 static const T pi = acos( T( -1 ) );
70 struct MathematicalConstants< double >
71 :
public StandardMathematicalConstants< double >
80 struct MathematicalConstants< long double >
81 :
public StandardMathematicalConstants< long double >
91 enum { factorial = m *
Factorial<m-1>::factorial };
99 enum { factorial = 1 };
115 return std::complex<K>(c.real(),-c.imag());
123 return (val < 0 ? -1 : 1);
Dune namespace.
Definition: alignedallocator.hh:10
int sign(const T &val)
Return the sign of the value.
Definition: math.hh:121
K conjugateComplex(const K &x)
compute conjugate complex of x
Definition: math.hh:105
Calculates the factorial of m at compile time.
Definition: math.hh:89
Provides commonly used mathematical constants.
Definition: math.hh:24
Standard implementation of MathematicalConstants.
Definition: math.hh:38