20 const double MIN = -2.5;
21 const double MAX = +2.5;
56 unsigned int index = 0;
77 <<
" yerf[index] " << yerf[index]
78 <<
" ymerf[index] " << ymerf[index]
79 <<
" " <<
std::fabs( yerf[index] - ymerf[index] )
89 <<
" yerfc[index] " << yerfc[index]
90 <<
" ymerfc[index] " << ymerfc[index]
91 <<
" " <<
std::fabs( yerfc[index] - ymerfc[index] )
100 <<
" yierf[index] " << yierf[index]
110 <<
" yierfc[index] " << yierfc[index]
138 legend->
AddEntry(gerf,
"TMath::Erf()");
139 legend->
AddEntry(gmerf,
"ROOT:Math::erf()");
140 legend->
AddEntry(gerfc,
"TMath::Erfc()");
141 legend->
AddEntry(gmerfc,
"ROOT::Math::erfInverse()");
147 cout <<
"Test Done!" << endl;
152 int main(
int argc,
char **argv)
156 for (
Int_t i=1 ; i<argc ; i++) {
157 std::string arg = argv[i] ;
166 cerr <<
"Usage: " << argv[0] <<
" [-g] [-v]\n";
168 cerr <<
" -g : graphics mode\n";
169 cerr <<
" -v : verbose mode";
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
double erf(double x)
Error function encountered in integrating the normal distribution.
Double_t ErfInverse(Double_t x)
returns the inverse error function x must be <-1<x<1
This class displays a legend box (TPaveText) containing several legend entries.
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
double erfc(double x)
Complementary error function.
virtual void Run(Bool_t retrn=kFALSE)
Main application eventloop. Calls system dependent eventloop via gSystem.
Double_t Erfc(Double_t x)
Compute the complementary error function erfc(x).
virtual void SetLineColor(Color_t lcolor)
Set the line color.
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Double_t Erf(Double_t x)
Computation of the error function erf(x).
tomato 2-D histogram with a float per channel (see TH1 documentation)}
Double_t ErfcInverse(Double_t x)
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
int main(int argc, char **argv)
A Graph is a graphics object made of two arrays X and Y with npoints each.
TGraph * drawPoints(Double_t x[], Double_t y[], int color, int style=1)
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
THist< 2, float, THistStatContent, THistStatUncertainty > TH2F
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.