Re: [ROOT] poisson

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Nov 05 2003 - 18:53:19 MET


Hi Dan,

In ROOT version 3.10, TFormula, TF1 accept TMath functions in the expression.
You can use TmMth::Poisson, TMath::Factorial, etc in it.

I recommend using TF1 instead of TFormula. TF1 accepts also more complex
expressions given by the interpreter or compiled functions.
see examples in the tutorials, eg FittingDemo.C

Rene Brun

Dan Holmes wrote:
> 
> Hello,
> 
> my problem for today is that i would like to define a TFormula with a
> factorial in it (poisson distribution) with the aim of being able
> to evaluate and integrate it at non-integer points..
> 
> i have a bit of c++ code that works out factorials but i want to be able
> to define the formula and plot it as a function..
> 
> do you have any examples of this?
> 
> cheers,
> 
> Dan.
> 
> --
> 
> CMS-Bristol
> http://cern.ch/dan.holmes



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET