source: git/Tst/Old/matrows.tst @ e706ff

spielwiese
Last change on this file since e706ff was 7bb71fa, checked in by Hans Schönemann <hannes@…>, 24 years ago
* hannes: execute git-svn-id: file:///usr/local/Singular/svn/trunk@4323 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 368 bytes
Line 
1proc mrows
2{
3  string @rc;
4  for (int @i = 1; @i<=ncols(#[1]); @i=@i+1)
5  {
6    @rc = @rc + "m[" + string(#[2]) + "," + string(@i) + "],";
7  }
8  @rc = @rc[1,size(@rc)-1] + ";";
9  return (@rc);
10}
11ring r= 32003,(x,y,z),lp;
12matrix m[3][3] = 0;
13m[1,1] = 4x;
14m[1,2] = y5x;
15m;
16for (int ii=1; ii<=nrows(m); ii=ii+1)
17{
18  execute(mrows(m,ii));
19}
20LIB "tst.lib";tst_status(1);$;
Note: See TracBrowser for help on using the repository browser.