fieker-DuValspielwiese
Last change
on this file since 370756 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:
997 bytes
|
Line | |
---|
1 | // |
---|
2 | // test script for std command |
---|
3 | // |
---|
4 | ring r= 32003,(x,y,z),ds; |
---|
5 | int a = 3; |
---|
6 | int b = 5; |
---|
7 | int c = 2; |
---|
8 | int d = 7; // c*b+d*a > 2ab, ggt(a,b) = 1 |
---|
9 | |
---|
10 | poly f = (x^a+y^b)^2+x^c*y^d; |
---|
11 | poly f'x = diff(f,x); |
---|
12 | f; |
---|
13 | f'x; |
---|
14 | poly f'y = diff(f,y); |
---|
15 | f'y; |
---|
16 | //ideal i = f'x,f'y; |
---|
17 | ideal i = diff(f,x), diff(f,y); |
---|
18 | i; |
---|
19 | "vdim i:", vdim(i); |
---|
20 | "dim i:", dim(i); |
---|
21 | "multiplicity i:", mult(i); |
---|
22 | i; |
---|
23 | option(prot); |
---|
24 | test(15); |
---|
25 | ideal j = std(i); |
---|
26 | //degree(j); |
---|
27 | "dim",dim(j); |
---|
28 | "multiplicity", mult(j); |
---|
29 | j; |
---|
30 | // |
---|
31 | "-------------------------------"; |
---|
32 | // |
---|
33 | ring r1 = 32003,(x,y,z),ds; |
---|
34 | r1; |
---|
35 | ideal i1=maxideal(3); |
---|
36 | ideal i2=x6,y4,z5,xy,yz,xz; |
---|
37 | i2; |
---|
38 | ideal j1=std(i2); |
---|
39 | j1; |
---|
40 | //maxdeg(3); |
---|
41 | //test(24); |
---|
42 | vdim(j1); |
---|
43 | "---------------------------------"; |
---|
44 | i1; |
---|
45 | //maxdeg(2); |
---|
46 | //test(24); |
---|
47 | ideal j2=std(i1); |
---|
48 | j2; |
---|
49 | vdim(j2); |
---|
50 | "---------------------------------"; |
---|
51 | vector v1=[x4,y2,xz2]; |
---|
52 | vector v2=[y3,x8,2z4]; |
---|
53 | module m=v1,v2; |
---|
54 | m; |
---|
55 | //maxdeg(3); |
---|
56 | //test(24); |
---|
57 | module m1=std(m); |
---|
58 | m1; |
---|
59 | vdim(m1); |
---|
60 | "--------------------------------"; |
---|
61 | listvar(all); |
---|
62 | kill r1; |
---|
63 | LIB "tst.lib";tst_status(1);$; |
---|
Note: See
TracBrowser
for help on using the repository browser.