source: git/Tst/Manual/is_injective.tst @ 42ea848

spielwiese
Last change on this file since 42ea848 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: 467 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "algebra.lib";
3int p = printlevel;
4ring r = 0,(a,b,c),ds;
5ring s = 0,(x,y,z,u,v,w),dp;
6ideal I = x-w,u2w+1,yz-v;
7map phi = r,I;                    // a map from r to s:
8is_injective(phi,r);              // a,b,c ---> x-w,u2w+1,yz-v
9ring R = 0,(x,y,z),dp;
10ideal i = x, y, x2-y3;
11map phi = R,i;                    // a map from R to itself, z --> x2-y3
12list l = is_injective(phi,R,"");
13l[1];
14def S = l[2]; setring S;
15ker;
16tst_status(1);$
Note: See TracBrowser for help on using the repository browser.