Hi, Try this fun->GetHistogram()->GetMaximum(); and fun->GetHistogram()->GetMinimum(); GetHistogram() member function returns pointer to TH1 object. Surik On Mon, 4 Nov 2002, Alexander Dietz wrote: > Hello Rooters > > suppose I define a function like > > TF1* fun=new TF1("fun","[0] + [1]*x + [2]*x*x",0,1000); > > with three parameters that are given later from input (e.g. a file). > So how can I get the minimum and the maximum value (or position) of this > function within its defined range (here: 0 to 1000) ? > > > Cheers > > Alexander Dietz > > ----------------------------------- > Alexander Dietz > Max Planck Institut fuer Kernphysik > Saupfercheckweg 1 > Postfach 10 39 80 > D-69029 Heidelberg > > Phone: +49-6221-516-259 > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:16 MET