source: git/Tst/Manual/pdivi.tst @ 951db29

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