37 #ifndef FCL_MATH_CONSTANTS_
38 #define FCL_MATH_CONSTANTS_
57 typedef typename S::Real
type;
128 template <
typename S>
134 static constexpr S
pi() {
return S(3.141592653589793238462643383279502884197169399375105820974944592L); }
137 static constexpr S
phi() {
return S(1.618033988749894848204586834365638117720309179805762862135448623L); }
146 static const Real value = eps_78();
152 static_assert(std::is_floating_point<Real>::value,
153 "Constants can only be evaluated for scalars with floating "
154 "point implementations");
165 static const Real value = std::pow(eps(), 7./8.);
171 static const Real value = std::pow(eps(), 3./4.);
177 static const Real value = std::pow(eps(), 1./2.);