source: git/Tst/Old/msect.tst @ 6a9e46

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