Hi Rene, Just my 2 cents.... If you can easily return a TGraph with the various points I would say this is enough, since the user can then always perform a fit on that graph and get back the fit function. One could however go a step further and implement something like TF1* TF1::GetIntegral(n) which would directly return the n-th order polynomial fit to the corresponding graph. Cheers, Nick. Rene Brun wrote: > Umh! what you request would imply adding an algebraic computation system > in ROOT returning an analytic function corresponding to the integral > of a TF1. The only thing that one can easily return is a TGraph > of points corresponding to the values of the integral at a set of > points. > > Rene Brun > > On > Thu, 11 Mar 2004, Andrei Kouznetsov wrote: > > >>I solved my problem. But I think it would be useful to have >>some TF1* TF1::GetIntegral(). >> >>Regards, Andrei. >> >>On Thu, 11 Mar 2004, Andrei Kouznetsov wrote: >> >> >>>On Thu, 11 Mar 2004, Rene Brun wrote: >>> >>>Thank you, I understood. >>>I am sorry that I was too lazy to look the code. >>> >>>Regards, Andrei. >>> >>> >>> >>>>Hi Andrei, >>>> >>>>What TF1::DrawIntegral does is: >>>> >>>> TGraph *g = new TF1(f1,"i"); >>>> g->Draw(); >>>> >>>>where TF1 *f1; >>>> >>>>Rene Brun >>>> >>>>Andrei Kouznetsov wrote: >>>> >>>>>Hello, >>>>> >>>>>is it possible to get the pointer to the function which >>>>>TF1::DrawIntegral(Option_t *option) draws? >>>>> >>>>>Thank you in advance, >>>>>Andrei. >>>> >>>
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET