31 #define __Constants_H 1
34 #include <feel/feelcore/traits.hpp>
57 template <
typename Tag,
typename Rep =
double>
66 namespace float_constants
68 Constant<pi_tag, float>
const pi;
70 namespace double_constants
72 Constant<pi_tag, double>
const pi;
74 namespace long_double_constants
76 Constant<pi_tag, long double>
const pi;
78 #if defined(FEELPP_HAS_QD_REAL)
79 namespace dd_real_constants
81 Constant<pi_tag, dd_real>
const pi;
83 namespace qd_real_constants
85 Constant<pi_tag, qd_real>
const pi;
88 template<>
inline Constant<pi_tag, long double>::operator
long double()
const
90 return 3.141592653589793238462643383279502884197L;
92 template<>
inline Constant<pi_tag, double>::operator double()
const
94 return 3.141592653589793238462643383279502884197;
96 template<>
inline Constant<pi_tag, float>::operator float()
const
98 return 3.141592653589793238462643383279502884197F;
100 #if defined(FEELPP_HAS_QD_REAL)
101 template<>
inline Constant<pi_tag, dd_real>::operator dd_real()
const
105 template<>
inline Constant<pi_tag, qd_real>::operator qd_real()
const
Structure that holds a constant with different numerical representation.
Definition: constants.hpp:58