https://github.com/root-project/root
Raw File
Tip revision: e647e2a9fc95a4c83f6581993e044ba261731f04 authored by Unknown Author on 18 August 2006, 13:34:07 UTC
This commit was manufactured by cvs2svn to create tag 'v5-12-00c'.
Tip revision: e647e2a
mathcoreCDF.C
// Example macro describing how to use the different cumulative
// distribution functions in ROOT. The macro shows four of them with
// respect to their two variables. In order to run the macro type:
//
//   root [0] .x mathcoreCDF.C 
//




void mathcoreCDF(){

gSystem->Load("libMathCore");
TF2 *f1a = new TF2("f1a","ROOT::Math::breitwigner_prob(x, y)",-10,10,0,10);

TF2 *f2a = new TF2("f2a","ROOT::Math::cauchy_quant(x,y)",0,20, 0,20);

TF2 *f3a = new TF2("f3a","ROOT::Math::normal_quant(x,y)",-10,10,0,5);

TF2 *f4a = new TF2("f4a","ROOT::Math::exponential_prob(x,y)",0,10,0,5);



TCanvas *c1 = new TCanvas("c1","c1",1000,750);

c1->Divide(2,2); 

c1->cd(1);
f1a->Draw("surf1");
c1->cd(2);
f2a->Draw("surf1");
c1->cd(3);
f3a->Draw("surf1");
c1->cd(4);
f4a->Draw("surf1");


}
back to top