17#define _USE_MATH_DEFINES
22#if defined(__sun) || defined(_MSC_VER)
37#define M_PI 3.14159265358979323846264338328
41#define M_PI_2 1.57079632679489661923132169164
45#define M_PI_4 0.78539816339744830961566084582
102 return std::log(
y) - ((
y-1)-
x)/
y ;
112 if (std::abs(
x) < 0.5)
118 double term =
x / 1.0;
124 while (std::abs(
term) > std::abs(
sum) * std::numeric_limits<double>::epsilon() ) ;
130 return std::exp(
x) - 1;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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
static uint64_t sum(uint64_t i)