Hi Michael, Move to a more recent version (eg 4.00/08). The possibility to call the TMath functions from TF1/TFormula was only implemented a few months ago. With 4.00/08, I get: root [0] TFormula form("form","TMath::Sigma()*TMath::Power(x,4)"); root [1] form.Eval(1) (Double_t)5.67040000000000030e-008 root [2] TFormula form1("form1","TMath::Sigma()*5") root [3] form1.Eval(1) (Double_t)2.83520000000000040e-007 Rene Brun On Mon, 19 Jul 2004, K.-Michael Aye wrote: > Hi! > > I get SEGV during runtime in compiled program and in CINT with this: > > TFormula form("form","TMath::Sigma()*TMath::Power(x,4)"); > > If I replace it with the value of the SB-constant, it works fine. > > Also a declaration of > TFormula form("form","TMath::Sigma()*5") > doesn't work (I tried it for test purposes), so it seems the culprit is > the TMath::Sigma function? > > I'm using Root 3.05/07 on gcc 3.2.2. > > Cheers, > Michael > >
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET