24 printf(
"\nTMath::Binomial simple test\n");
25 printf(
"Build the Tartaglia triangle\n");
26 printf(
"============================\n");
29 for(
Int_t i=0;i<max;i++) {
45 printf(
"\nTMath::Binomial fancy test\n");
46 printf(
"Verify Newton formula for (x+y)^n\n");
47 printf(
"x,y in [-2,2] and n from 0 to 9 \n");
48 printf(
"=================================\n");
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.