fieker-DuValspielwiese
Last change
on this file since 6a9e46 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:
1010 bytes
|
Rev | Line | |
---|
[b35b93] | 1 | // |
---|
| 2 | // test script for intersect command |
---|
| 3 | // |
---|
| 4 | pagelength = 10000; |
---|
| 5 | ring r1 = 32003,(x,y,z),(c,ds); |
---|
| 6 | r1; |
---|
| 7 | "-------------------------------"; |
---|
| 8 | poly s1=x2y3+45x6y3+68x4z5+80y6x8; |
---|
| 9 | poly s2=6x5+3y6+8z6; |
---|
| 10 | poly s3=12xyz3+2y3z6; |
---|
| 11 | ideal i1=s1,s2,s3; |
---|
| 12 | ideal i2=s1+s2,s2,s1; |
---|
| 13 | vector v1=[s1,s2,s2*s3]+s1*gen(5); |
---|
| 14 | vector v2=[s1-s2,s3,s2]+s1*gen(5); |
---|
| 15 | module m1=v1,v2; |
---|
| 16 | module m2=v2,2*v1; |
---|
| 17 | intersect(i1,i2); |
---|
| 18 | "-------------------------"; |
---|
| 19 | intersect(m1,m2); |
---|
| 20 | "-------------------------"; |
---|
| 21 | listvar(all); |
---|
| 22 | kill r1; |
---|
| 23 | "--------------------------"; |
---|
| 24 | ring r1=0,(x,y,z),(c,ds); |
---|
| 25 | poly s1=x2y3+45x6y3+68x4z5+80y6x8; |
---|
| 26 | poly s2=6x5+3y6+8z6; |
---|
| 27 | poly s3=12xyz3+2y3z6; |
---|
| 28 | ideal i1=s1,s2,s3; |
---|
| 29 | ideal i2=s1+s2,s2,s1; |
---|
| 30 | vector v1=[s1,s2,s2*s3]+s1*gen(5); |
---|
| 31 | vector v2=[s1-s2,s3,s2]+s1*gen(5); |
---|
| 32 | module m1=v1,v2; |
---|
| 33 | module m2=v2,2*v1; |
---|
| 34 | intersect(i1,i2); |
---|
| 35 | "-------------------------"; |
---|
| 36 | intersect(m1,m2); |
---|
| 37 | "-------------------------"; |
---|
| 38 | listvar(all); |
---|
| 39 | intersect(x,y,z); |
---|
| 40 | intersect(ideal(x),ideal(y),ideal(z2),ideal(z)); |
---|
| 41 | intersect(x,y,z2,z); |
---|
| 42 | kill r1; |
---|
[46976a6] | 43 | LIB "tst.lib";tst_status(1);$; |
---|
[b35b93] | 44 | //bsp mit char 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.