formula with multiple TFormula

\ (@cea.fr)
Mon, 7 Dec 1998 14:55:25 +0100 (MET)


Hi ROOTers,
I would like to draw formula using user defined basic
formula (defined with TFormula).

e.g :

pomeron = new TFormula("pomeron","[0]*pow((x-0.939*0.939)/1.878,[1])");
f = new TFormula("f","([2]*pow((x-0.939*0.939)/1.878,[3]))");

total = new TF1("total","pomeron+f",1,20);
or
total = new TFormula("total","pomeron+f");

but I cannot combine "pomeron" and "f" ( the call above misfortunely
don't add up to give me the sum). I could do it by writing them
down as a whole but I figure it would be nice if one could combine
TFormula to obtain new ones. Is this possible?

sincerely,
Thierry