fieker-DuValspielwiese
Last change
on this file since 564136 was
ef8adb,
checked in by Hans Schönemann <hannes@…>, 18 years ago
|
*hannes: cancel attributes in assigns
git-svn-id: file:///usr/local/Singular/svn/trunk@9119 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
459 bytes
|
Rev | Line | |
---|
[94d338] | 1 | LIB "tst.lib"; |
---|
| 2 | tst_init(); |
---|
| 3 | // attrib for list elements |
---|
| 4 | |
---|
| 5 | ring r; |
---|
| 6 | ideal i=x; |
---|
| 7 | list l=i,i; |
---|
| 8 | homog(l[1]); |
---|
| 9 | attrib(l); |
---|
| 10 | attrib(l[1]); |
---|
| 11 | attrib(l[2]); |
---|
| 12 | |
---|
| 13 | attrib(l[2],"huhu",1); |
---|
| 14 | attrib(l); |
---|
| 15 | attrib(l[1]); |
---|
| 16 | attrib(l[2]); |
---|
| 17 | |
---|
| 18 | l[1][2]=y; |
---|
| 19 | attrib(l); |
---|
| 20 | attrib(l[1]); |
---|
| 21 | attrib(l[2]); |
---|
| 22 | |
---|
| 23 | l[2][2]=y; |
---|
| 24 | attrib(l); |
---|
| 25 | attrib(l[1]); |
---|
| 26 | attrib(l[2]); |
---|
| 27 | |
---|
[ef8adb] | 28 | // attrib for ideals: should be cancelled when the ideal changes |
---|
| 29 | |
---|
| 30 | i=x,y; |
---|
| 31 | homog(i); |
---|
| 32 | attrib(i); |
---|
| 33 | homog(i); |
---|
| 34 | attrib(i); |
---|
| 35 | |
---|
| 36 | i[2]=x+1; |
---|
| 37 | attrib(i); |
---|
| 38 | |
---|
[94d338] | 39 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.