Hi Tancredi, Using 3.10/01, you can call functions of functions, eg TF1 f1("f1","sqrt(TMath::Landau(x))",0,8) f1.Draw() Instead (or in addition) of TMath, you can reference any interpreted or compiled function. .L myfuncs.C TF1 f2("f2","sqrt(myfunc(x,78.5))",0,1); where myfunc is defined in myfuncs.C Rene Brun On Tue, 28 Oct 2003, Tancredi Carli wrote: > > Hello, > > ..a beginers questions. > > Does somebody has an example of how one can use functions > on pre-defined functions ? What should one do, if one e.g. > wants to plot the logarithm of a landau-distribution which > is predefined in root. > lan = new TF1("Landau","log(landau)",binmin,binmax); > seems to work, but is there a more general way, e.g. > if one of the function is user-defined ? > > I also could not understand the > syntax how to divide to functions, e.g. two polynominals. > > Thank you for your help. > > Tancredi Carli, > > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET