next up previous contents index
suivant: Arrangements : perm nPr monter: Combinatory analysis précédent: Factorial : factorial !   Table des matières   Index


Binomial coefficients : binomial comb nCr

comb or nCr or binomial takes as argument two integers n and p.
comb(n,p) or nCr(n,p) or binomial(n,p) returns $ \left(\vphantom{^n_p}\right.$np$ \left.\vphantom{^n_p}\right)$ = Cnp.
Input :
comb(5,2)
Output :
10
Remark
binomial (unlike comb, nCr) may have a third real argument, in this case binomial(n,p,a) returns $ \left(\vphantom{^n_p}\right.$np$ \left.\vphantom{^n_p}\right)$ap(1 - a)n-p.



giac documentation written by Renée De Graeve and Bernard Parisse