source: git/Tst/Manual/alg_kernel.tst @ 76ce4e6

spielwiese
Last change on this file since 76ce4e6 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: 527 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "algebra.lib";
3ring r = 0,(a,b,c),ds;
4ring s = 0,(x,y,z,u,v,w),dp;
5ideal I = x-w,u2w+1,yz-v;
6map phi = r,I;                // a map from r to s:
7alg_kernel(phi,r);            // a,b,c ---> x-w,u2w+1,yz-v
8ring S = 0,(a,b,c),ds;
9ring R = 0,(x,y,z),dp;
10qring Q = std(x-y);
11ideal i = x, y, x2-y3;
12map phi = S,i;                 // a map to a quotient ring
13alg_kernel(phi,S,"ker",3);     // uses algorithm 3
14setring S;                     // you have access to kernel in preimage
15ker;
16tst_status(1);$
Note: See TracBrowser for help on using the repository browser.