source: git/Tst/Manual/isZeroElement.tst @ ef52d6

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: 621 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "multigrading.lib";
3ring r = 0,(x,y,z),dp;
4intmat g[2][3]=
51,0,1,
60,1,1;
7intmat t[2][1]=
8-2,
91;
10intmat tt[2][1]=
111,
12-1;
13setBaseMultigrading(g,t);
14poly a = x10yz;
15poly b = x8y2z;
16poly c = x4z2;
17poly d = y5;
18poly e = x2y2;
19poly f = z2;
20intvec v1 = multiDeg(a) - multiDeg(b);
21v1;
22isZeroElement(v1);
23isZeroElement(v1, tt);
24intvec v2 = multiDeg(a) - multiDeg(c);
25v2;
26isZeroElement(v2);
27isZeroElement(v2, tt);
28intvec v3 = multiDeg(e) - multiDeg(f);
29v3;
30isZeroElement(v3);
31isZeroElement(v3, tt);
32intvec v4 = multiDeg(c) - multiDeg(d);
33v4;
34isZeroElement(v4);
35isZeroElement(v4, tt);
36tst_status(1);$
Note: See TracBrowser for help on using the repository browser.