[ROOT] Integrating a function

From: Siva Subramania (siva@uhhep.phys.uh.edu)
Date: Wed Jun 18 2003 - 04:51:20 MEST


Hi,
I have some questions on 
TF1:Integral(Double_t* a, Double_t* b, Double_t* params, Double_t* epsilon).
I don't understand what is this params all about.  Actually I want to 
know where do you specify the integration variable.  
To be more specific, I define a function fitf(double* x, double* par) and 
I define TF1 f1("ff", "fitf", 0.50, 1.50) and inside the fitf function I 
have a variable y, which is the one I want to be my integration variable 
and not x.  So, I think, y should also be an argument of the function, is 
it necessary like that? or can I specify y to be my integration variable 
when I call the integral routine.  
And also I have been trying to use f1.DrawIntegral() and its giving 
some linking errors, what am I supposed to do.  
Can you give an example of some sort and explain it to me.  
Thank you,
Siva.  



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