Do not use TFormula but TF1. See examples in the Root tutorials at: http://root.cern.ch/root/html/examples/myfit.C.html http://root.cern.ch/root/html/examples/backsig.C.html Rene Brun On Thu, 2 Dec 1999, Feng Shengqin wrote: > Hello all, > > I have a question to ask,if I want to draw a complicated function,for > example including some integral function of x and y,how to read this > function using TFormula? > > form1 = new TFormula("form1","fun2(x,y)"); > > the fun2(x,y) is very difficult to define using only one line. > > In your ROOT Tutorials,you only define a very simple function, > > form1 = new TFormula("form1","abs(sin(x)/x)"); > > Best regards, Shengqin > > --------------------------------- > Institute of Particle Physics > Hua-Zhong Normal University,Wuhan,China > email:fengsq@iopp.ccnu.edu.cn > --------------------------------------- > > >
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET