23 template<
class Field >
24 struct MathematicalConstants;
41 static const T
e = std::exp( T( 1 ) );
47 static const T
pi = std::acos( T( -1 ) );
58 struct MathematicalConstants< float >
59 :
public StandardMathematicalConstants< float >
68 struct MathematicalConstants< double >
69 :
public StandardMathematicalConstants< double >
78 struct MathematicalConstants< long double >
79 :
public StandardMathematicalConstants< long double >
113 return std::complex<K>(c.real(),-c.imag());
121 return (val < 0 ? -1 : 1);
126 #endif // #ifndef DUNE_MATH_HH