Re: [ROOT] Multiplying a TF1

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Aug 16 2002 - 19:54:35 MEST


Hi Alberto,

an example:

root [0] TF1 *f1 = new TF1("f1","x+x*x",0,10)
root [1] TH1F h("h","scaled f1",100,0,10)
root [2] h.Add(f1,1.5)
root [3] h.Draw()
root [4] f1.Draw("lsame")


Rene Brun

On Fri, 16 Aug 2002, Alberto Garcia Raboso wrote:

> Hi ROOTers,
> 
> Does anybody know how to draw a TF1 object multiplied by some constant?
> 
> Thanks in advance,
> 
> Alberto
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:04 MET