283 void Error(
const std::string& errorMessage,
double value );
284 void Error(
const std::string& errorMessage,
int iValue,
double value );
291 {
return ! (a & 1); }
299 {
return (d > 0) ? d : -d; }
302 {
return (d > 0) ? d : -d; }
305 {
return (d > 0) ? d : -d; }
308 {
return (d > 0) ? d : -d; }
311 {
return (d > 0) ? d : -d; }
316 {
return (b >= 0) ?
Abs(a) : -
Abs(a); }
319 {
return (b >= 0) ?
Abs(a) : -
Abs(a); }
322 {
return (b >= 0) ?
Abs(a) : -
Abs(a); }
325 {
return (b >= 0) ?
Abs(a) : -
Abs(a); }
328 {
return (b >= 0) ?
Abs(a) : -
Abs(a); }
333 {
return a <= b ? a : b; }
336 {
return a <= b ? a : b; }
339 {
return a <= b ? a : b; }
342 {
return a <= b ? a : b; }
345 {
return a <= b ? a : b; }
348 {
return a <= b ? a : b; }
351 {
return a <= b ? a : b; }
354 {
return a <= b ? a : b; }
359 {
return a >= b ? a : b; }
362 {
return a >= b ? a : b; }
365 {
return a >= b ? a : b; }
368 {
return a >= b ? a : b; }
371 {
return a >= b ? a : b; }
374 {
return a >= b ? a : b; }
377 {
return a >= b ? a : b; }
380 {
return a >= b ? a : b; }
385 {
return x < lb ? lb : (x > ub ? ub : x); }
388 {
return x < lb ? lb : (x > ub ? ub : x); }
391 {
return x < lb ? lb : (x > ub ? ub : x); }
394 {
return x < lb ? lb : (x > ub ? ub : x); }
397 {
return x < lb ? lb : (x > ub ? ub : x); }
406 # define finite _finite 407 # define isnan _isnan 410 #if defined(R__AIX) || defined(R__MAC) || defined(R__SOLARIS_CC50) || \ 411 defined(R__HPUX11) || defined(R__GLIBC) 414 # ifdef R__SOLARIS_CC50 415 extern "C" {
int finite(
double); }
417 # if defined(R__GLIBC) && defined(__STRICT_ANSI__) 419 # define finite __finite 422 # define isnan __isnan 428 extern double sin(
double);
429 extern double cos(
double);
430 extern double tan(
double);
431 extern double sinh(
double);
432 extern double cosh(
double);
433 extern double tanh(
double);
434 extern double asin(
double);
435 extern double acos(
double);
436 extern double atan(
double);
437 extern double atan2(
double,
double);
438 extern double sqrt(
double);
439 extern double exp(
double);
440 extern double pow(
double,
double);
441 extern double log(
double);
442 extern double log10(
double);
444 # if !defined(finite) 445 extern int finite(
double);
448 extern int isnan(
double);
482 {
return x != 0 ?
atan2(y, x) : (y > 0 ?
Pi()/2 : -
Pi()/2); }
491 {
return pow(x, y); }
501 {
return isfinite(x); }
double pow(double, double)
static Int_urt LocMax(Int_urt n, const Short_urt *a)
static ULong_urt Hash(const void *txt, Int_urt ntxt)
static Double_urt ACosH(Double_urt)
static Float_urt * Cross(Float_urt v1[3], Float_urt v2[3], Float_urt out[3])
static Double_urt ASin(Double_urt)
static Double_urt ASinH(Double_urt)
static Float_urt Normalize(Float_urt v[3])
static Double_urt Sin(Double_urt)
static Double_urt KolmogorovProb(Double_urt z)
static void Sort(Int_urt n, const Short_urt *a, Int_urt *index, Bool_urt down=kurTRUE)
static Double_urt Ceil(Double_urt x)
static Double_urt BesselI1(Double_urt x)
static Short_urt Sign(Short_urt a, Short_urt b)
static Double_urt SinH(Double_urt)
static Short_urt Max(Short_urt a, Short_urt b)
static Int_urt Nint(Float_urt x)
static Int_urt IsNaN(Double_urt x)
static Double_urt RadToDeg()
static Double_urt Sigma()
static Double_urt BreitWigner(Double_urt x, Double_urt mean=0, Double_urt gamma=1)
static Double_urt StruveH1(Double_urt x)
static Double_urt Log2(Double_urt x)
static Double_urt Rgair()
static Double_urt BesselY0(Double_urt x)
static Double_urt DegToRad()
static Short_urt Min(Short_urt a, Short_urt b)
static Double_urt GhbarCUncertainty()
static Double_urt Hbarcgs()
static Int_urt Finite(Double_urt x)
static Double_urt Log10(Double_urt x)
static Double_urt BesselK0(Double_urt x)
static Int_urt LocMin(Int_urt n, const Short_urt *a)
static Double_urt Floor(Double_urt x)
static Double_urt StruveL0(Double_urt x)
static Double_urt SigmaUncertainty()
static Double_urt HbarUncertainty()
static Double_urt InvPi()
static Double_urt ATan(Double_urt)
static Double_urt Log(Double_urt x)
static Double_urt Hypot(Double_urt x, Double_urt y)
static Double_urt BesselI(Int_urt n, Double_urt x)
static Double_urt GUncertainty()
static Double_urt ACos(Double_urt)
static Double_urt LnGamma(Double_urt z)
static Double_urt Exp(Double_urt)
static Double_urt GhbarC()
static Double_urt KUncertainty()
static Double_urt Factorial(Int_urt)
static Double_urt StruveL1(Double_urt x)
static Float_urt * Normal2Plane(Float_urt v1[3], Float_urt v2[3], Float_urt v3[3], Float_urt normal[3])
static Double_urt BesselJ1(Double_urt x)
static Double_urt Erfc(Double_urt x)
static Double_urt Gamma(Double_urt z)
static Double_urt Sqrt(Double_urt x)
void Error(const std::string &errorMessage, double value)
static Double_urt BesselY1(Double_urt x)
static Double_urt MWair()
static Bool_urt Odd(Long_urt a)
static Double_urt Power(Double_urt x, Double_urt y)
static Double_urt TwoPi()
static Double_urt BesselK1(Double_urt x)
static Bool_urt Even(Long_urt a)
static Double_urt HCcgs()
static Double_urt RUncertainty()
static Double_urt Tan(Double_urt)
static Long_urt NextPrime(Long_urt x)
static Double_urt CUncertainty()
static Short_urt Abs(Short_urt d)
unsigned short UShort_urt
static Double_urt Freq(Double_urt x)
static Double_urt Poisson(Double_urt x, Double_urt par)
static Float_urt NormCross(Float_urt v1[3], Float_urt v2[3], Float_urt out[3])
static Double_urt CosH(Double_urt)
static Double_urt NaUncertainty()
static Double_urt StruveH0(Double_urt x)
static void BubbleLow(Int_urt Narr, Double_urt *arr1, Int_urt *arr2)
static Double_urt BesselI0(Double_urt x)
static Bool_urt IsInside(Double_urt xp, Double_urt yp, Int_urt np, Double_urt *x, Double_urt *y)
static Double_urt PiOver2()
static Double_urt PiOver4()
static void BubbleHigh(Int_urt Narr, Double_urt *arr1, Int_urt *arr2)
static Short_urt Range(Short_urt lb, Short_urt ub, Short_urt x)
static Double_urt ATanH(Double_urt)
static Double_urt QeUncertainty()
static Double_urt BesselJ0(Double_urt x)
static Double_urt ATan2(Double_urt, Double_urt)
static Int_urt BinarySearch(Int_urt n, const Short_urt *array, Short_urt value)
static Double_urt Voigt(Double_urt x, Double_urt sigma, Double_urt lg, Int_urt R=4)
static Double_urt BesselK(Int_urt n, Double_urt x)
static Double_urt Landau(Double_urt x, Double_urt mean=0, Double_urt sigma=1)
double atan2(double, double)
static Double_urt HUncertainty()
static Double_urt Prob(Double_urt chi2, Int_urt ndf)
static Double_urt TanH(Double_urt)
static Double_urt Gaus(Double_urt x, Double_urt mean=0, Double_urt sigma=1, Bool_urt norm=kurFALSE)
static Double_urt GnUncertainty()
static Double_urt Erf(Double_urt x)
static Double_urt Cos(Double_urt)