To plot 'erf' function

Hello Rooters,

I am new to Root and would like to take your help to define the ‘erf’ function and its parameters.
Is it possible to define erf function as we define ‘Gaus’ function and its parameters?

I define Gaussian function as:

TF1 f1("f1","gaus",-10,10);
f1->SetParameters(1,-1,1);
f1->Draw();

Thanks a lot for your help.

Regards,
Kajal

TF1 f1("f1", "TMath::Erf(x)", -10, 10);
TF1 f2("f2", "TMath::Erfc(x)", -10, 10);
TF1 f3("f3", "TMath::ErfInverse(x)", -1, 1);
TF1 f4("f4", "TMath::ErfcInverse(x)", 0, 2);
1 Like

Thank you very much Pepe Le Pew.

Regards,
Kajal