spielwiese
Last change
on this file was
894057,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
|
-
Property mode set to
100644
|
File size:
311 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "general.lib"; |
---|
3 | binomial(200,100);""; //type bigint |
---|
4 | int n,k = 200,100; |
---|
5 | bigint b1 = binomial(n,k); |
---|
6 | ring r = 0,x,dp; |
---|
7 | poly b2 = coeffs((x+1)^n,x)[k+1,1]; //coefficient of x^k in (x+1)^n |
---|
8 | b1-b2; //b1 and b2 should coincide |
---|
9 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.