fieker-DuValspielwiese
Last change
on this file since efdab0f was
46976a6,
checked in by Olaf Bachmann <obachman@…>, 26 years ago
|
* added status check to regress.cmd
* added tst_status(1); call to each tst file, just before quit
git-svn-id: file:///usr/local/Singular/svn/trunk@2271 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
752 bytes
|
Rev | Line | |
---|
[b35b93] | 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 | // |
---|
| 8 | poly f=z; |
---|
| 9 | f+m1; |
---|
| 10 | f*m2; |
---|
| 11 | // |
---|
| 12 | typeof(f); |
---|
| 13 | typeof(m1); |
---|
| 14 | typeof(m1+m2); |
---|
| 15 | typeof(m1[1]); |
---|
| 16 | typeof(0); |
---|
| 17 | m1[1]=0; |
---|
| 18 | typeof(m1[1]); |
---|
| 19 | // intersect for modules |
---|
| 20 | m1[1]=[x]; |
---|
| 21 | intersect(m1,m2); |
---|
| 22 | listvar(all); |
---|
| 23 | // ideal sum: idCompactify is wrong |
---|
| 24 | m1+m2; |
---|
| 25 | ideal i1=x; |
---|
| 26 | ideal i2=y; |
---|
| 27 | i1+i2; |
---|
| 28 | // |
---|
| 29 | intersect(i1,i2); |
---|
| 30 | // lead-command |
---|
| 31 | f=x+z; |
---|
| 32 | lead(f); |
---|
| 33 | m1[3]=[f]; |
---|
| 34 | lead(m1); |
---|
| 35 | lead(m1[1]); |
---|
| 36 | lead(i1); |
---|
| 37 | lead(i1+i2); |
---|
| 38 | vector v=[f,1]; |
---|
| 39 | lead(v); |
---|
| 40 | // homog-command |
---|
| 41 | homog(f,z); |
---|
| 42 | f=f+1; |
---|
| 43 | homog(f,z); |
---|
| 44 | homog(v,z); |
---|
| 45 | m1[1]=v; |
---|
| 46 | m1[2]=[f]; |
---|
| 47 | homog(m1,z); |
---|
| 48 | i1=f,z+1; |
---|
| 49 | homog(i1,z); |
---|
| 50 | // accessing an ideal/modul as an "open" array |
---|
| 51 | i1=1,2,3; |
---|
| 52 | i1; |
---|
| 53 | i1[15]=15; |
---|
| 54 | i1; |
---|
| 55 | m1[5]=[15]; |
---|
| 56 | m1; |
---|
[46976a6] | 57 | LIB "tst.lib";tst_status(1);$; |
---|
Note: See
TracBrowser
for help on using the repository browser.