Fit Function again

From: Soeren Lange (soeren@pktw09.phy.tu-dresden.de)
Date: Fri Mar 07 1997 - 16:38:25 MET


> Soeren Lange wrote:
> >
> > how is it possible to fit with a user defined function?
> >

...

> > root [20] TF1 *f1 = new TF1("f1", "sin(x)", 0., 3.14);
> > root [21] graph->Fit("f1");
> > Illegal number of parameters = 0
> >

...

Rene Brun wrote:

> Look at the example:
>      http://root.cern.ch/root/html/examples/multifit.C.html



I am sorry, but the example multifit.C is only using the predefined
fit function "gaus" which of course is working.
But how to fit with sin(x), cos(x), tan(x), ...?
Neither "sin(x)" nor "sin" nor "sinu" (like expo) is accepted.

Any help would be very much appreciated.

soeren



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:18 MET