source: git/Tst/Manual/jet.tst

spielwiese
Last change on this file 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: 626 bytes
Line 
1LIB "tst.lib"; tst_init();
2  ring r=32003,(x,y,z),(c,dp);
3  jet(1+x+x2+x3+x4,3);
4  poly f=1+x+x2+xz+y2+x3+y3+x2y2+z4;
5  jet(f,3);
6  intvec iv=2,1,1;
7  jet(f,3,iv);
8  // the part of f with (total) degree >3:
9  f-jet(f,3);
10  // the homogeneous part of f of degree 2:
11  jet(f,2)-jet(f,1);
12  // the part of maximal degree:
13  jet(f,deg(f))-jet(f,deg(f)-1);
14  // the absolute term of f:
15  jet(f,0);
16  // now for other types:
17  ideal i=f,x,f*f;
18  jet(i,2);
19  vector v=[f,1,x];
20  jet(v,1);
21  jet(v,0);
22  v=[f,1,0];
23  module m=v,v,[1,x2,z3,0,1];
24  jet(m,2);
25  ring rs=0,x,ds;
26  // 1/(1+x) till degree 5
27  jet(1,1+x,5);
28tst_status(1);$
Note: See TracBrowser for help on using the repository browser.