Comparing two TF1 objects

Hi,

I want to compare two function (TF1)…specifically want to know their shape…for example.

TF1 *func15 = new TF1("func15","(0.0104198*(1 - 0.00816839*x*x - 1.7933/(1 + exp(1.2645*x))))", 1.0, 10.);
TF1 *func20 = new TF1("func20","(0.0100593*(1 - 0.00821498*x*x - 2.73276/(1 + exp(1.35577*x))))", 1.0, 10.);

func15->Draw();
func20-> Draw("SAME");

Like for two histograms, where one can scale them to same area (e.g. normalize to 1) to compare…this case how do i compare two functions…whether they behave same way or not…

Best,
Sanjay

You can use the underlying histograms and normalise them:

func15->GetHistogram();

Please ignore my question…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.