17#define _USE_MATH_DEFINES
22#if defined(__sun) || defined(_MSC_VER)
36#define M_PI 3.14159265358979323846264338328
40#define M_PI_2 1.57079632679489661923132169164
44#define M_PI_4 0.78539816339744830961566084582
106 return std::log(
y) - ((
y-1)-
x)/
y ;
116 if (std::abs(
x) < 0.5)
122 double term =
x / 1.0;
128 while (std::abs(term) > std::abs(
sum) * std::numeric_limits<double>::epsilon() ) ;
134 return std::exp(
x) - 1;
Namespace for new Math classes and functions.
double log1p(double x)
declarations for functions which are not implemented by some compilers
double Pi()
Mathematical constants.
double expm1(double x)
exp(x) -1 with error cancellation when x is small
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
static uint64_t sum(uint64_t i)