spielwiese
Last change
on this file since 09f10e was
051432,
checked in by Martin Lee <martinlee84@…>, 11 years ago
|
chg: added tests for tr. 439,440,441
|
-
Property mode set to
100644
|
File size:
280 bytes
|
Rev | Line | |
---|
[051432] | 1 | LIB "tst.lib"; |
---|
| 2 | tst_init(); |
---|
| 3 | |
---|
| 4 | proc testfactors (list l, poly f) |
---|
| 5 | { |
---|
| 6 | poly g= 1; |
---|
| 7 | for (int i= 1; i <= size (l[1]); i++) |
---|
| 8 | { |
---|
| 9 | g= g*(l[1][i]^l[2][i]); |
---|
| 10 | } |
---|
| 11 | g == f; |
---|
| 12 | l; |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | //tr. 439 |
---|
| 16 | ring rQ=0,(u,v),dp; |
---|
| 17 | poly f = u*(3v+1)^2; |
---|
| 18 | list l= factorize(f); |
---|
| 19 | testfactors (l,f); |
---|
| 20 | |
---|
| 21 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.