tutorial illustrating the use of TMath::Binomial can be run with: 
 
 
TMath::Binomial simple test
Build the Tartaglia triangle
============================
n= 0                             1
n= 1                           1   1
n= 2                         1   2   1
n= 3                       1   3   3   1
n= 4                     1   4   6   4   1
n= 5                   1   5  10  10   5   1
n= 6                 1   6  15  20  15   6   1
n= 7               1   7  21  35  35  21   7   1
n= 8             1   8  28  56  70  56  28   8   1
n= 9           1   9  36  84 126 126  84  36   9   1
n=10         1  10  45 120 210 252 210 120  45  10   1
n=11       1  11  55 165 330 462 462 330 165  55  11   1
n=12     1  12  66 220 495 792 924 792 495 220  66  12   1
 
TMath::Binomial fancy test
Verify Newton formula for (x+y)^n
x,y in [-2,2] and n from 0 to 9  
=================================
Average Error = 1.060390e-13
   
 
  
  
  
  printf(
"\nTMath::Binomial simple test\n");
 
  printf(
"Build the Tartaglia triangle\n");
 
  printf(
"============================\n");
 
  for(
Int_t i=0;i<max;i++) {
 
  }
}
 
  printf(
"\nTMath::Binomial fancy test\n");
 
  printf(
"Verify Newton formula for (x+y)^n\n");
 
  printf(
"x,y in [-2,2] and n from 0 to 9  \n");
 
  printf(
"=================================\n");
 
    do {
     }
  }
}
 
}
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
 
This is the base class for the ROOT Random number generators.
 
Int_t Nint(T x)
Round to nearest integer. Rounds half integers to the nearest even integer.
 
Double_t Binomial(Int_t n, Int_t k)
Calculates the binomial coefficient n over k.
 
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Returns x raised to the power y.
 
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.
 
- Author
 - Federico Carminati 
 
Definition in file pdf004_Binomial.C.