Hi Hermine, If you use a CINT interpreted function or a compiled function, simply specify your constant when returning the value of the function. If you use a predefined formula, insert a parameter in the definition of the function, eg TF1 f3("f3","[0]*pol2(1)",-2,2) f3.SetParameters(10,1,0,1) f3.Draw() Rene Brun On Thu, 3 Oct 2002, Hermine Woehri wrote: > Hello, > > I would like to simply multiply a function by a constant value (i.e. > scaling up/down a function). However, the only method I have found is > "Analyze()". > Now, I tried to understand the documentation about this method, but I > did not succeed to obtain any useful answer. > So, could you, please, give me an expample, of how to use this method? > > Best regards, > Hermine > > PS: Maybe there is easier way to multiply a function by a constant... > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:12 MET