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

spielwiese
Last change on this file since e3deb9 was 3373f84, checked in by Hans Schönemann <hannes@…>, 19 years ago
*hannes/lossen: new lib git-svn-id: file:///usr/local/Singular/svn/trunk@7827 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 hnexpansion: -------------------
27ring r=0,(x,y),dp;
28hnexpansion(x6-y4);
29hnexpansion((y-x2+x3)*(y-x2-x3));
30hnexpansion((x7-2x4y2+xy4-1y5)*(x7-4x4y2+4xy4-1y5));
31
32ring F2=2,(x,y,t),ds;
33def L=hnexpansion(y2+x7y+x9+x8);
34param(L);
35kill L,F2;
36
37//--------------- examples with change to ring extension
38ring R=32003,(x,y),dp;
39def L=hnexpansion(x6+y4);
40def HNring = L[1]; setring HNring;  displayHNE(hne);
41kill L,HNring;
42
43//--------------- example with more than one ring change
44ring F3=3,(x,y),dp;
45poly f=(x3-xy2+y3)*(x2+y2)*(x4-x3y+xy3+y4);
46list L=hnexpansion(f);
47def HNring = L[1]; setring HNring;  displayHNE(hne);
48map T; int i;
49for (i=1; i<=size(hne); i++) {
50 T=basering,param(hne[i]);
51 T(f);
52}
53kill hne,HNring,F3,L;
54
55// ------------ test of extdevelop: -------------------
56setring r;
57list hne=develop(x2+y3+y4-y5,-1);
58extdevelop(hne,2);
59extdevelop(hne,4);
60extdevelop(hne,10);
61kill hne;
62// ------------ test of essdevelop:  ------------------
63setring R;
64list L=essdevelop(x6+y4);
65L[2];  // number of conjugated branches
66def HNring = L[1]; setring HNring;  displayHNE(hne);
67kill hne,L,HNring;
68setring r;
69// ------------ test of param: ------------------------
70param(develop(x2+y3));
71param(develop(y2+x3+x4));
72param(develop(y2+x3+x4),0);
73// ------------ test of displayHNE: -------------------
74example displayHNE;
75// ----------------------------------------------------------------------------
76// ------- test of invariants, displayInvariants, intersection, stripHNE,   ---
77// ---- puiseux2generators, multiplicities, newtonpoly, is_irred, HNdevelop ---
78example invariants;
79example displayInvariants;
80list L=hnexpansion((x2-y3)*(x2+y3));
81intersection(L[1],L[2]);
82kill L;
83example stripHNE;
84puiseux2generators(intvec(3,7,15,31,63,127),intvec(2,2,2,2,2,2));
85setring r;
86multsequence(develop(x5+y7));
87example newtonpoly;
88example is_irred;
89is_irred((x2+y3)*(x2+y3+xy2));
90// ------- test of getnm, T_Transform, T1_Transform, T2_Transform, koeff, -----
91// ------------  redleit, squarefree, allsquarefree, referencepoly   ----------
92example getnm;
93T_Transform(y2+x3,1,2);
94T1_Transform(y-x2+x3,1,2);
95T2_Transform(y2+x3,-1,3,2,y2+x3);
96example referencepoly;
97koeff(x2+2xy+3xy2-x2y-2y3,1,2);
98example redleit;
99example squarefree;
100example allsquarefree;
101
102// --------------- additions: -----------------------------
103example further_hn_proc;
104example leit;
105example testreducible;
106example T_Transform;
107example T1_Transform;
108example T2_Transform;
109example koeff;
110example multiplicities;
111example puiseux2generators;
112example intersection;
113example multsequence;
114example displayMultsequence;
115example separateHNE;
116example charPoly;
117example find_in_list;
118example get_last_divisor;
119example extdevelop;
120example factorfirst;
121example factorlist;
122example develop;
123example param;
124example hnexpansion;
125example delta;
126example is_NND;
127tst_status(1);$
Note: See TracBrowser for help on using the repository browser.