spielwiese
Release-4-3-2p2
Last change
on this file since 0d6b7fc was
894057,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
|
-
Property mode set to
100644
|
File size:
848 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "inout.lib"; |
---|
3 | // Assume there exists a file 'Macid' with the following ideal in |
---|
4 | // Macaulay format:" |
---|
5 | // x[0]3-101/74x[0]2x[1]+7371x[0]x[1]2-13/83x[1]3-x[0]2x[2] \ |
---|
6 | // -4/71x[0]x[1]x[2] |
---|
7 | // Read this file into Singular and assign it to the string s1 by: |
---|
8 | // string s1 = read("Macid"); |
---|
9 | // This is equivalent to"; |
---|
10 | string s1 = |
---|
11 | "x[0]3-101/74x[0]2x[1]+7371x[0]x[1]2-13/83x[1]3-x[0]2x[2]-4/71x[0]x[1]x[2]"; |
---|
12 | rMacaulay(s1); |
---|
13 | // You may wish to assign s1 to a Singular ideal id: |
---|
14 | string sid = "ideal id =",rMacaulay(s1),";"; |
---|
15 | ring r = 0,x(0..3),dp; |
---|
16 | execute(sid); |
---|
17 | id; ""; |
---|
18 | // Now treat a matrix in Macaulay format. Using the execute |
---|
19 | // command, this could be assinged to a Singular matrix as above. |
---|
20 | string s2 = " |
---|
21 | 0 0 0 0 0 |
---|
22 | a3 0 0 0 0 |
---|
23 | 0 b3 0 0 0 |
---|
24 | 0 0 c3 0 0 |
---|
25 | 0 0 0 d3 0 |
---|
26 | 0 0 0 0 e3 "; |
---|
27 | rMacaulay(s2); |
---|
28 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.