fieker-DuValspielwiese
Last change
on this file since ef52d6 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:
417 bytes
|
Rev | Line | |
---|
[894057] | 1 | LIB "tst.lib"; tst_init(); |
---|
| 2 | ring R=0,(x,y),dp; |
---|
| 3 | poly f = x3y2 + 2x2y2 + xy - x + y + 1; |
---|
| 4 | f; |
---|
| 5 | f + x5 + 2; |
---|
| 6 | f * x2; |
---|
| 7 | (x+y)/x; |
---|
| 8 | f/3x2; |
---|
| 9 | x5 > f; |
---|
| 10 | x<=y; |
---|
| 11 | x>y; |
---|
| 12 | ring r=0,(x,y),ds; |
---|
| 13 | poly f = fetch(R,f); |
---|
| 14 | f; |
---|
| 15 | x5 > f; |
---|
| 16 | f[2..4]; |
---|
| 17 | size(f); |
---|
| 18 | f[size(f)+1]; f[-1]; // monomials out of range are 0 |
---|
| 19 | intvec v = 6,1,3; |
---|
| 20 | f[v]; // the polynom built from the 1st, 3rd and 6th monomial of f |
---|
| 21 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.