source: git/Tst/Manual/mapall.tst @ 6fb723

spielwiese
Last change on this file since 6fb723 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: 803 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "ring.lib";
3// The example is not shown since mapall does not work in a procedure
4// (and hence not in the example procedure). Try the following commands:
5//   ring R=0,(x,y,z),dp;
6//   ideal j=x,y,z;
7//   matrix M[2][3]=1,2,3,x,y,z;
8//   map phi=R,x2,y2,z2;
9//   ring S=0,(a,b,c),ds;
10//   ideal i=c,a,b;
11//   mapall(R,i);         //map from R to S: x->c, y->a, z->b
12//   names(S);
13//   j; print(M); phi;    //phi maps R to S: x->c2, y->a2, z->b2
14//   ideal i1=a2,a+b,1;
15//   mapall(R,i1,"");     //map from R to S: x->a2, y->a+b, z->1
16//   names(S);
17//   j_; print(M_); phi_;
18//   changevar("T","x()",R);  //change vars in R and call result T
19//   mapall(R,maxideal(1));   //identity map from R to T
20//   names(T);
21//   j; print(M); phi;
22//   kill R,S,T;
23tst_status(1);$
Note: See TracBrowser for help on using the repository browser.