spielwiese
Last change
on this file since 951db29 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:
331 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "grobcov.lib"; |
---|
3 | ring R=(0,a,b,c),(x,y),dp; |
---|
4 | "Divisor="; |
---|
5 | poly f=(ab-ac)*xy+(ab)*x+(5c); |
---|
6 | "Dividends="; |
---|
7 | ideal F=ax+b,cy+a; |
---|
8 | "(Remainder, quotients, factor)="; |
---|
9 | def r=pdivi(f,F); |
---|
10 | r; |
---|
11 | "Verifying the division: r[3]*f-(r[2][1]*F[1]+r[2][2]*F[2])-r[1] ="; |
---|
12 | r[3]*f-(r[2][1]*F[1]+r[2][2]*F[2])-r[1]; |
---|
13 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.