source: git/Tst/Manual/randcharpoly.tst @ 85bcd6

fieker-DuValspielwiese
Last change on this file since 85bcd6 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: 334 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "rootsmr.lib";
3ring r = 0,(x,y,z),dp;
4ideal i = (x-1)*(x-2),(y-1),(z-1)*(z-2)*(z-3)^2;
5i = std(i);
6ideal b = qbase(i);
7poly p = randcharpoly(b,i);
8p;
9nrroots(p); // See nrroots in urrcount.lib
10int pr = printlevel;
11printlevel = pr+2;
12p = randcharpoly(b,i,5);
13nrroots(p);
14printlevel = pr;
15tst_status(1);$
Note: See TracBrowser for help on using the repository browser.