source: git/Tst/Old/subexpr1.tst @ 30acb78

fieker-DuValspielwiese
Last change on this file since 30acb78 was 37cd955, checked in by Hans Schoenemann <hannes@…>, 14 years ago
pagelength removed git-svn-id: file:///usr/local/Singular/svn/trunk@13172 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 814 bytes
Line 
1//
2// examples for subexpr notation in matrices and ideals
3//
4LIB "lib";
5ring r = 33,(x,y,z),lp;
6matrix mm[5][5] = x1,x2,x3,x4,x5;
7     mm[1,1..5];
8     mm[2,1..5];
9     mm[3,1..5];
10     mm[4,1..5];
11     mm[5,1..5];
12"----------------";
13mm[1..5,1] = mm[1,1..5];
14     mm[1,1..5];
15     mm[2,1..5];
16     mm[3,1..5];
17     mm[4,1..5];
18     mm[5,1..5];
19"----------------";
203 * mm[1..5,1];
21"----------------";
22mm[1..5,1] * 4;
23mm[1..5,2] = mm[1..5,1] + 2 * mm[1..5,1];
24"----------------";
25     mm[1,1..5];
26     mm[2,1..5];
27     mm[3,1..5];
28     mm[4,1..5];
29     mm[5,1..5];
30"----------------";
31fixmat(mm,6);  // formmat(mm) would be slower !!
32mm[1..3,1..3] = stransp(3,3,mm[1..3,1..3]);
33"----------------";
34fixmat(mm,6);
35matrix u[8][8] = unitmat(8,4);
36"----------------";
37fixmat(u,3);
38kill r;
39LIB "tst.lib";tst_status(1);$
Note: See TracBrowser for help on using the repository browser.