source: git/Tst/Manual/is_surjective.tst @ 951db29

spielwiese
Last change on this file since 951db29 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: 459 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "algebra.lib";
3ring R = 0,(x,y,z),dp;
4ideal i = x, y, x2-y3;
5map phi = R,i;                    // a map from R to itself, z->x2-y3
6is_surjective(phi);
7qring Q = std(ideal(z-x37));
8map psi = R, x,y,x2-y3;           // the same map to the quotient ring
9is_surjective(psi);
10ring S = 0,(a,b,c),dp;
11map psi = R,ideal(a,a+b,c-a2+b3); // a map from R to S,
12is_surjective(psi);               // x->a, y->a+b, z->c-a2+b3
13tst_status(1);$
Note: See TracBrowser for help on using the repository browser.