1 | LIB "tst.lib"; tst_init(); tst_ignore("// ** loaded "); tst_ignore("// ** _ is no standard basis"); |
---|
2 | LIB "derham.lib"; |
---|
3 | |
---|
4 | //---------------------------------------- |
---|
5 | //EXAMPLE 1 |
---|
6 | //---------------------------------------- |
---|
7 | ring r=0,(x,y),dp; |
---|
8 | poly f=y2-x3-2x+3; |
---|
9 | list L=deRhamCohomology(f); |
---|
10 | L; |
---|
11 | kill r, L; |
---|
12 | |
---|
13 | //---------------------------------------- |
---|
14 | //EXAMPLE 2 |
---|
15 | //---------------------------------------- |
---|
16 | ring r=0,(x,y),dp; |
---|
17 | poly f=y2-x3-x; |
---|
18 | list L=deRhamCohomology(f); |
---|
19 | L; |
---|
20 | kill r, L; |
---|
21 | |
---|
22 | //---------------------------------------- |
---|
23 | //EXAMPLE 3 |
---|
24 | //---------------------------------------- |
---|
25 | ring r=0,(x,y),dp; |
---|
26 | list C=list(x2-1,(x+1)*y,y*(y2+2x+1)); |
---|
27 | list L=deRhamCohomology(C); |
---|
28 | L; |
---|
29 | kill r, L; |
---|
30 | |
---|
31 | //---------------------------------------- |
---|
32 | //EXAMPLE 4 |
---|
33 | //---------------------------------------- |
---|
34 | ring r=0,(x,y,z),dp; |
---|
35 | list C=list(x*(x-1),y,z*(z-1),z*(x-1)); |
---|
36 | list L=deRhamCohomology(C); |
---|
37 | L; |
---|
38 | kill r, L; |
---|
39 | |
---|
40 | //---------------------------------------- |
---|
41 | //EXAMPLE 5 |
---|
42 | //---------------------------------------- |
---|
43 | ring r=0,(x,y,z),dp; |
---|
44 | list C=list(x*y,y*z); |
---|
45 | list L=deRhamCohomology(C,"Vdres"); |
---|
46 | L; |
---|
47 | kill r, L; |
---|
48 | |
---|
49 | //---------------------------------------- |
---|
50 | //EXAMPLE 6 |
---|
51 | //---------------------------------------- |
---|
52 | ring r=0,(x,y,z,u),dp; |
---|
53 | list C=list(x,y,z,u); |
---|
54 | list L=deRhamCohomology(C); |
---|
55 | L; |
---|
56 | kill r, L; |
---|
57 | |
---|
58 | //---------------------------------------- |
---|
59 | //EXAMPLE 7 |
---|
60 | //---------------------------------------- |
---|
61 | ring r=0,(x,y,z),dp; |
---|
62 | poly f=x3+y3+z3; |
---|
63 | list L=deRhamCohomology(f); |
---|
64 | L; |
---|
65 | kill r, L; |
---|
66 | |
---|
67 | //---------------------------------------- |
---|
68 | //EXAMPLE 8 |
---|
69 | //---------------------------------------- |
---|
70 | ring r=0,(x,y,z),dp; |
---|
71 | poly f=x2+y2+z2; |
---|
72 | list L=deRhamCohomology(f,"Vdres"); |
---|
73 | L; |
---|
74 | kill r, L; |
---|
75 | |
---|
76 | //---------------------------------------- |
---|
77 | //EXAMPLE 9 |
---|
78 | //---------------------------------------- |
---|
79 | ring r=0,(x,y,z,u),dp; |
---|
80 | list C=list(x2+y2+z2,u); |
---|
81 | list L=deRhamCohomology(C); |
---|
82 | L; |
---|
83 | kill r, L; |
---|
84 | |
---|
85 | |
---|
86 | //---------------------------------------- |
---|
87 | //EXAMPLE 10 |
---|
88 | //---------------------------------------- |
---|
89 | ring r=0,(x,y,z),dp; |
---|
90 | list C=list((x*(y-1),y2-1)); |
---|
91 | list L=deRhamCohomology(C); |
---|
92 | L; |
---|
93 | kill r, L; |
---|
94 | |
---|
95 | tst_status(1);$ |
---|