fieker-DuValspielwiese
Last change
on this file since b4cbc2 was
8a2e90,
checked in by Hans Schoenemann <hannes@…>, 6 years ago
|
fix: module * module is undefined
|
-
Property mode set to
100644
|
File size:
775 bytes
|
Line | |
---|
1 | //test modul oprations, wrong in 0.8.2, 0.8.2a |
---|
2 | ring r=32003,(x,y,z),(c,dp); |
---|
3 | module m1=[x]; |
---|
4 | module m2=[y]; |
---|
5 | m1+m2; |
---|
6 | m1*m2; |
---|
7 | matrix(m1)*matrix(m2); |
---|
8 | // |
---|
9 | poly f=z; |
---|
10 | f+m1; |
---|
11 | f*m2; |
---|
12 | // |
---|
13 | typeof(f); |
---|
14 | typeof(m1); |
---|
15 | typeof(m1+m2); |
---|
16 | typeof(m1[1]); |
---|
17 | typeof(0); |
---|
18 | m1[1]=0; |
---|
19 | typeof(m1[1]); |
---|
20 | // intersect for modules |
---|
21 | m1[1]=[x]; |
---|
22 | intersect(m1,m2); |
---|
23 | listvar(all); |
---|
24 | // ideal sum: idCompactify is wrong |
---|
25 | m1+m2; |
---|
26 | ideal i1=x; |
---|
27 | ideal i2=y; |
---|
28 | i1+i2; |
---|
29 | // |
---|
30 | intersect(i1,i2); |
---|
31 | // lead-command |
---|
32 | f=x+z; |
---|
33 | lead(f); |
---|
34 | m1[3]=[f]; |
---|
35 | lead(m1); |
---|
36 | lead(m1[1]); |
---|
37 | lead(i1); |
---|
38 | lead(i1+i2); |
---|
39 | vector v=[f,1]; |
---|
40 | lead(v); |
---|
41 | // homog-command |
---|
42 | homog(f,z); |
---|
43 | f=f+1; |
---|
44 | homog(f,z); |
---|
45 | homog(v,z); |
---|
46 | m1[1]=v; |
---|
47 | m1[2]=[f]; |
---|
48 | homog(m1,z); |
---|
49 | i1=f,z+1; |
---|
50 | homog(i1,z); |
---|
51 | // accessing an ideal/modul as an "open" array |
---|
52 | i1=1,2,3; |
---|
53 | i1; |
---|
54 | i1[15]=15; |
---|
55 | i1; |
---|
56 | m1[5]=[15]; |
---|
57 | m1; |
---|
58 | LIB "tst.lib";tst_status(1);$; |
---|
Note: See
TracBrowser
for help on using the repository browser.