Revision 8ab25493f0a074bb85b050389cb146b7ce527ff0 authored by Fons Rademakers on 29 September 2006, 08:18:19 UTC, committed by Fons Rademakers on 29 September 2006, 08:18:19 UTC
git-svn-id: http://root.cern.ch/svn/root/trunk@16380 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent f029540
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");
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...