Re: TMath::Gamma(a,x)

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 10 Jul 2006 12:22:01 +0200

There are two varieties of incomplete gamma function (for example, see http://en.wikipedia.org/wiki/Incomplete_gamma_function ). As stated in the TMath::Gamma function description, we are using the one, where Gamma(a, +infinity) = 1,
so in our case Gamma(a, 0) = 0.

Anna Kreshuk

andreyk1_at_post.tau.ac.il wrote:
> Dear rooters,
>
> I need to perform some numerical calculation, using incomplete gamma function,
> but this function doesn't work properly.
>
> For example, if I put Gamma(5,0) I should expect for 1, but C++ gives
> 0…something is wrong there.
>
>
> Thanks,
> Andrew.
>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
Received on Mon Jul 10 2006 - 12:22:06 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET