|
D.2.2.4 binomialProcedure from library
Example: LIB "general.lib"; binomial(200,100);""; //type string, computed in char 0 → 90548514656103281165404177077484163874504589675413336841320 → binomial(200,100,3);""; //type string, computed in char 3 → 0 → int n,k = 200,100; ring r = 0,x,dp; number b1 = binomial(n,k,0); //type number, computed in ring r poly b2 = coeffs((x+1)^n,x)[k+1,1]; //coefficient of x^k in (x+1)^n b1-b2; //b1 and b2 should coincide → 0 See also: prime. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |