10 #include <tracking/trackFindingCDC/numerics/SpecialFunctions.h>
12 #include <boost/math/tools/precision.hpp>
13 #include <boost/math/special_functions/sinc.hpp>
18 using namespace TrackFindingCDC;
20 double TrackFindingCDC::sinc(
double x)
22 return boost::math::sinc_pi(x);
25 double TrackFindingCDC::asinc(
double x)
30 using namespace boost::math;
31 double const taylor_n_bound = tools::forth_root_epsilon<double>();
33 if (abs(x) >= taylor_n_bound) {
39 double const taylor_0_bound = tools::epsilon<double>();
40 if (abs(x) >= taylor_0_bound) {
45 double const taylor_2_bound = tools::root_epsilon<double>();
46 if (abs(x) >= taylor_2_bound) {
48 result += x2 * x2 * (3.0 / 40.0);