[ROOT] How to get the maximum and minimum of a function

From: Alexander Dietz (adietz@mickey.mpi-hd.mpg.de)
Date: Mon Nov 04 2002 - 16:40:43 MET


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