spielwiese
Last change
on this file since 6fb723 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:
398 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | ring r=0,(x,y),dp; |
---|
3 | // determine f with deg(f)=2 and with given values v of f |
---|
4 | // at 9 points: (2,3)^0=(1,1),...,(2,3)^8=(2^8,3^8) |
---|
5 | // valuation point: (2,3) |
---|
6 | ideal p=2,3; |
---|
7 | ideal v=1,2,3,4,5,6,7,8,9; |
---|
8 | poly ip=vandermonde(p,v,2); |
---|
9 | ip[1..5]; // the 5 first terms of ip: |
---|
10 | // compute value of ip at the point 2^8,3^8, result must be 9 |
---|
11 | subst(subst(ip,x,2^8),y,3^8); |
---|
12 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.