spielwiese
Last change
on this file since 2b98ae was
2b98ae,
checked in by Thomas Siebert <siebert@…>, 24 years ago
|
New deform_s.tst (results are checked with hilb)
git-svn-id: file:///usr/local/Singular/svn/trunk@3874 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | //deform_s.tst |
---|
2 | //short tests for deform.lib |
---|
3 | //--------------------------- |
---|
4 | LIB "tst.lib"; |
---|
5 | tst_init(); |
---|
6 | LIB "deform.lib"; |
---|
7 | example versal; |
---|
8 | // rest of what used to be in that example |
---|
9 | int p = printlevel; |
---|
10 | ring r2 = 0,(x,y,z),ds; |
---|
11 | ideal Fo = x2,xy,yz,zx; |
---|
12 | printlevel = 2; |
---|
13 | versal(Fo); |
---|
14 | setring(So); |
---|
15 | ideal Js=imap(Px,Js); |
---|
16 | hilb(std(Js)); |
---|
17 | printlevel = p; |
---|
18 | if(system("with","Namespaces")) { kill Ring::Px,Top::Qx,Ring::So; } |
---|
19 | kill Px,Qx,So; |
---|
20 | example mod_versal; |
---|
21 | example lift_rel_kb; |
---|
22 | // rest of what used to be in that example |
---|
23 | "2nd EXAMPLE"; |
---|
24 | ring r = 100,(x,y),dp; |
---|
25 | ideal I = x2+y2,x2y; |
---|
26 | module M = jacob(I)+I*freemodule(2); |
---|
27 | module N = [x+y,1+x2+xy]; |
---|
28 | matrix A = lift_rel_kb(N,M); |
---|
29 | print(A); |
---|
30 | print(kbase(std(M))*A); |
---|
31 | print(reduce(N,std(M))); |
---|
32 | example lift_kbase; |
---|
33 | printlevel = 2; |
---|
34 | ring r1 = 0,(x,y,z,u),dp; |
---|
35 | ideal i3 = xy,xz,xu,yz,yu,zu; |
---|
36 | versal(i3); |
---|
37 | setring Px; |
---|
38 | listvar(Px); |
---|
39 | setring(So); |
---|
40 | ideal Js=imap(Px,Js); |
---|
41 | hilb(std(Js)); |
---|
42 | kill_rings(); |
---|
43 | ring Po = 0,(x,y),dp; |
---|
44 | ideal Io = std(x^4+y^3); |
---|
45 | matrix Mo; |
---|
46 | //============= rk 1 ====================================== |
---|
47 | module k =[x],[y]; |
---|
48 | module m(0)=k; |
---|
49 | module m(1)=[x,y],[-y2,x3]; |
---|
50 | module m(2)=[x3,y],[-y2,x]; |
---|
51 | int i'; |
---|
52 | for (i'=0;i'<3;i'=i'+1) |
---|
53 | { |
---|
54 | Mo=m(i'); |
---|
55 | mod_versal(Mo,Io); |
---|
56 | setring Px; |
---|
57 | listvar(Px); |
---|
58 | setring(So); |
---|
59 | ideal Js=imap(Qx,Js); |
---|
60 | hilb(std(Js)); |
---|
61 | setring(Po); |
---|
62 | kill_rings(); |
---|
63 | } |
---|
64 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.