source: git/Tst/Short/hnoether_s.tst @ b2d5b9

spielwiese
Last change on this file since b2d5b9 was b2d5b9, checked in by Hans Schönemann <hannes@…>, 20 years ago
*hannes; updated from 2-0 git-svn-id: file:///usr/local/Singular/svn/trunk@7042 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 3.3 KB
Line 
1// File: hnoether_s.tst
2// Short tests for hnoether lib
3LIB "tst.lib";
4tst_init();
5LIB "hnoether.lib";
6// ------------ test of develop: -------------------
7ring r=0,(x,y),ds;
8develop(x2+y2);
9develop(x2+y+y2);
10develop((x2+y3)*(x2+y3+xy2));
11poly p_1 = y2+x3;
12poly p_2 = p_1^2 + x5y;
13poly p_3 = p_2^2 + x^10 *p_1;
14param(develop(p_1));
15param(develop(p_3));
16develop(p_3,-1);
17develop(p_3,4);
18poly heme=xy8+y8+x4y6+4x3y6+2x5y5+6x6y4+4x8y3+x10y2+4x9y2+2x11y+x12;
19list hne=develop(heme);
20print(hne[1]);
21kill r;
22ring r=2,(x,y,t),ds;
23poly f=y2+x7y+x9+x8;
24param(develop(f));
25kill r;
26// ------------ test of reddevelop: -------------------
27ring r=0,(x,y),dp;
28reddevelop(x6-y4);
29setring r;
30kill HNEring;
31list hne=reddevelop((y-x2+x3)*(y-x2-x3));
32setring r;
33kill HNEring;
34reddevelop((x7-2x4y2+xy4-1y5)*(x7-4x4y2+4xy4-1y5));
35kill HNEring;
36//--------------- examples with change to ring extension
37ring R=32003,(x,y),dp;
38reddevelop(x6+y4);
39kill HNEring;
40ring F2=2,(x,y),dp;
41reddevelop(y2+x7y+x9+x8);
42kill HNEring;
43//--------------- example with more than one ring change
44ring F3=3,(x,y),dp;
45list hne=reddevelop((x3-xy2+y3)*(x2+y2)*(x4-x3y+xy3+y4));
46map T; int i;
47poly f=(x3-xy2+y3)*(x2+y2)*(x4-x3y+xy3+y4);
48for (i=1; i<=size(hne); i++) {
49 T=basering,param(hne[i]);
50 T(f);
51}
52kill HNEring;
53// ------------ test of extdevelop: -------------------
54setring r;
55list hne=develop(x2+y3+y4-y5,-1);
56extdevelop(hne,2);
57extdevelop(hne,4);
58extdevelop(hne,10);
59kill hne;
60// ------------ test of essdevelop:  ------------------
61setring R;
62essdevelop(x6+y4);
63kill HNEring;
64setring r;
65// ------------ test of param: ------------------------
66param(develop(x2+y3));
67param(develop(y2+x3+x4));
68param(develop(y2+x3+x4),0);
69// ------------ test of displayHNE: -------------------
70example displayHNE;
71// ----------------------------------------------------------------------------
72// ------- test of invariants, displayInvariants, intersection, stripHNE,   ---
73// ---- puiseux2generators, multiplicities, newtonpoly, is_irred, HNdevelop ---
74example invariants;
75example displayInvariants;
76list hne=reddevelop((x2-y3)*(x2+y3));
77intersection(hne[1],hne[2]);
78example stripHNE;
79puiseux2generators(intvec(3,7,15,31,63,127),intvec(2,2,2,2,2,2));
80setring r;
81multiplicities(develop(x5+y7));
82example newtonpoly;
83example is_irred;
84is_irred((x2+y3)*(x2+y3+xy2));
85example HNdevelop;
86// ------- test of getnm, T_Transform, T1_Transform, T2_Transform, koeff, -----
87// ------------  redleit, squarefree, allsquarefree, referencepoly   ----------
88example getnm;
89T_Transform(y2+x3,1,2);
90T1_Transform(y-x2+x3,1,2);
91T2_Transform(y2+x3,-1,3,2,y2+x3);
92example referencepoly;
93koeff(x2+2xy+3xy2-x2y-2y3,1,2);
94example redleit;
95example squarefree;
96example allsquarefree;
97list L=list(poly(x-y),ideal(x,y));
98// --------------- additions: -----------------------------
99example further_hn_proc;
100example leit;
101example testreducible;
102example T_Transform;
103example T1_Transform;
104example T2_Transform;
105example koeff;
106example multiplicities;
107example puiseux2generators;
108example intersection;
109example multsequence;
110example displayMultsequence;
111example separateHNE;
112example charPoly;
113example find_in_list;
114example get_last_divisor;
115example extdevelop;
116example factorfirst;
117example essdevelop;
118example factorlist;
119example develop;
120example param;
121example reddevelop;
122example hnexpansion;
123example sethnering;
124example delta;
125example is_NND;
126
127tst_status(1);$
Note: See TracBrowser for help on using the repository browser.