miscalculation in 5.24

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


Dear Rooters,

I've come across this interesting miscalculation in 5.24 (violates commutativity of multiplication):

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 seems to be gone in 5.26 but I couldn't find any reference to it in the 5.26 release notes (maybe I didn't look closely enough).

I'm wondering whether this behaviour is understood... is there a workaround for earlier ROOT versions?

Thank you and kind regards,

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:25:27 CET

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