Re: Gamma function

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Sat, 4 Mar 2006 11:15:36 +0100


Hi George
On 3 Mar 2006, at 18:55, George Japaridze wrote:
>
> But, when I try to define the function I want to plot, that's the
> error message:
> ______________________________________________________________________
> __________
> root [7] TF1 *f3 = new TF1("f3","ROOT::TMath::conf_hyperg(1,2,x)",
> 0,10);
> Error in <TFormula::Compile>: Bad numerical expression :
> "ROOT::TMath::conf_hyperg(1,2,x)"
> Error in <TF1::TF1>: function: f3/ROOT::TMath::conf_hyperg(1,2,x)
> has 0 parameters instead of 1
> ______________________________________________________________________
> ___________
>

the conf_hyperg function is in namespace ROOT::Math and NOT ROOT::TMath,

so this works, for example:

root [1] TF1 *f3 = new TF1("f3","ROOT::Math::conf_hyperg(1,2,x)",0,10); root [2] f3->Draw()

  Cheers,

  Lorenzo Received on Sat Mar 04 2006 - 11:15:37 MET

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