source: git/Tst/Buch/Example_B_6_12.tst @ 9faaf0

spielwiese
Last change on this file since 9faaf0 was 9faaf0, checked in by Hans Schönemann <hannes@…>, 17 years ago
*hannes: syntax fix git-svn-id: file:///usr/local/Singular/svn/trunk@10214 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 598 bytes
Line 
1LIB "tst.lib";
2tst_init();
3
4// ======================================= example B.6.12 ==================
5
6ring R=0,(x,y),dp;
7poly f=3x2y+4xy2+y3+3x2+6xy+y2+3x;
8poly g=2x2y+xy2-y3-2x2-y2-2x;
9
10ring S=(0,y),x,dp;
11poly f=imap(R,f); poly g=imap(R,g);
12f;
13g;
14
15ring T1=5,x,dp;
16map phi=R,x,0;
17poly f=phi(f); poly g=phi(g);
18f;
19g;
20
21ring T2=7,x,dp;
22map psi=R,x,0;
23poly f=psi(f); poly g=psi(g);
24f;
25g;
26
27setring T1;
28phi=R,x,2;
29f=phi(f); g=phi(g);   //we substitute y by 2
30gcd(f,g);
31
32setring T2;
33psi=R,x,2;
34f=psi(f); g=psi(g);
35gcd(f,g);
36
37setring R;
38gcd(f,g);     //the SINGULAR built-in function
39
40tst_status(1);$
41
Note: See TracBrowser for help on using the repository browser.