Re: miscalculation in 5.24

From: Thiemo Nagel <thiemo.nagel_at_ph.tum.de>
Date: Thu, 25 Mar 2010 21:48:13 +0100


Thiemo Nagel wrote:
> root [9] TF1 *f = new TF1("f", "TMath::Gamma(2,1) * x"); f->Eval(0)
> (const Double_t)2.00000000000000000e+00
> root [10] TF1 *f = new TF1("f", "x * TMath::Gamma(2,1)"); f->Eval(0)
> (const Double_t)0.00000000000000000e+00

It can be simplified further:

(new TF1("f", "TMath::Gamma(2,0)"))->Eval(0)

(const Double_t)2.00000000000000000e+00

Cheers!

Thiemo

-- 
+-----------------------------------+--------------------------+
| Dipl.-Phys. Thiemo Nagel          |                          |
| Technische Universitaet Muenchen  | Room    PH1 3276         |
| Physik-Department E18             |                          |
| James-Franck-Strasse              | Phone  +49 89 289-12379  |
| D-85747 Garching                  | Fax    +49 89 289-12570  |
+-----------------------------------+--------------------------+
Received on Thu Mar 25 2010 - 21:48:16 CET

This archive was generated by hypermail 2.2.0 : Thu Mar 25 2010 - 23:50:01 CET