Fitting with TMath::Erf

Hi

I am trying to fit using erf and have not had any success. The fitting works for exp ( did as test )

any suggestions on how do erf fit

see attached script

thanks
test_ERF.C (1.51 KB)

Hi,

Which version of ROOT are you using?
What is the error you see?

TMath::Erf can be used for fitting only in ROOT 3.05.06 and above.

Cheers,
Philippe.