New version of RALICE introduced
[u/mrichter/AliRoot.git] / RALICE / AliMath.h
CommitLineData
d88f97cc 1#ifndef ALIMATH_H
2#define ALIMATH_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
d88f97cc 8#include <iostream.h>
9#include <math.h>
10
11#include "TObject.h"
12
13class AliMath : public TObject
14{
15 public:
16 AliMath(); // Default constructor
17 ~AliMath(); // Destructor
18 Float_t Gamma(Float_t z); // Standard gamma function Gamma(z)
19 Float_t Gamma(Float_t a,Float_t x); // Incomplete gamma function P(a,x)
20 Float_t LnGamma(Float_t z); // Compute ln[Gamma(z)]
21 Float_t Erf(Float_t x); // Error function erf(x)
22 Float_t Erfc(Float_t x); // Complementary error function erfc(x)
23 Float_t Prob(Float_t chi2,Int_t ndf); // Compute Chi-squared probability
24
25 protected:
26 Float_t GamSer(Float_t a,Float_t x); // Compute P(a,x) via serial representation
27 Float_t GamCf(Float_t a,Float_t x); // Compute P(a,x) via continued fractions
28
959fbac5 29 ClassDef(AliMath,1) // Various mathematical tools for physics analysis.
d88f97cc 30
31};
32#endif