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

spielwiese
Last change on this file since e36ae54 was e36ae54, checked in by Olaf Bachmann <obachman@…>, 26 years ago
* regress.cmd: rm .gz file * added stuff from M. Lamm git-svn-id: file:///usr/local/Singular/svn/trunk@1438 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 2.5 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);
10poly p_1 = y2+x3;
11poly p_2 = p_1^2 + x5y;
12poly p_3 = p_2^2 + x^10 *p_1;
13param(develop(p_1));
14param(develop(p_3));
15develop(p_3,-1);
16develop(p_3,4);
17poly heme=xy8+y8+x4y6+4x3y6+2x5y5+6x6y4+4x8y3+x10y2+4x9y2+2x11y+x12;
18list hne=develop(heme);
19print(hne[1]);
20kill r;
21ring r=2,(x,y,t),ds;
22poly f=y2+x7y+x9+x8;
23param(develop(f));
24kill r;
25// ------------ test of reddevelop: -------------------
26ring r=0,(x,y),dp;
27reddevelop(x6-y4);
28setring r;
29kill HNEring;
30list hne=reddevelop((y-x2+x3)*(y-x2-x3));
31setring r;
32kill HNEring;
33reddevelop((x7-2x4y2+xy4-1y5)*(x7-4x4y2+4xy4-1y5));
34kill HNEring;
35//--------------- examples with change to ring extension
36ring R=32003,(x,y),dp;
37reddevelop(x6+y4);
38kill HNEring;
39ring F2=2,(x,y),dp;
40reddevelop(y2+x7y+x9+x8);
41kill HNEring;
42//--------------- example with more than one ring change
43ring F3=3,(x,y),dp;
44list hne=reddevelop((x3-xy2+y3)*(x2+y2)*(x4-x3y+xy3+y4));
45map T; int i;
46poly f=(x3-xy2+y3)*(x2+y2)*(x4-x3y+xy3+y4);
47for (i=1; i<=size(hne); i++) {
48 T=basering,param(hne[i]);
49 T(f);
50}
51kill HNEring;
52// ------------ test of extdevelop: -------------------
53setring r;
54list hne=develop(x2+y3+y4-y5,-1);
55extdevelop(hne,2);
56extdevelop(hne,4);
57extdevelop(hne,10);
58kill hne;
59// ------------ test of param: ------------------------
60param(develop(x2+y3));
61param(develop(y2+x3+x4));
62// ------------ test of displayHNE: -------------------
63example displayHNE;
64// ----------------------------------------------------------------------------
65// ------- test of invariants, displayInvariants, generators, intersection, ---
66// -------         stripHNE, puiseux2generators, multiplicities, newtonpoly ---
67example invariants;
68example displayInvariants;
69example generators;
70list hne=reddevelop((x2-y3)*(x2+y3));
71intersection(hne[1],hne[2]);
72example stripHNE;
73puiseux2generators(intvec(3,7,15,31,63,127),intvec(2,2,2,2,2,2));
74setring r;
75multiplicities(develop(x5+y7));
76example newtonpoly;
77// ------- test of getnm, T_Transform, T1_Transform, T2_Transform, koeff, -----
78// -------         redleit, squarefree, allsquarefree, set_list           -----
79example getnm;
80T_Transform(y2+x3,1,2);
81T1_Transform(y-x2+x3,1,2);
82T2_Transform(y2+x3,-1,3,2);
83koeff(x2+2xy+3xy2-x2y-2y3,1,2);
84example redleit;
85example squarefree;
86example allsquarefree;
87list L=list(poly(x-y),ideal(x,y));
88set_list(L,intvec(2,1),x2+y7);
89$
Note: See TracBrowser for help on using the repository browser.