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

spielwiese
Last change on this file since e706ff 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: 345 bytes
Line 
1proc firsts
2{
3  string @ss = #[3] + #[3];
4  string @s;
5  int @i;
6  for (int @j = 1; @j<=#[2]; @j=@j+1)
7  {
8    @s = "poly " + #[1] + string(@j) + "=";
9    for (@i=1; @i <=size(#[3]); @i = @i + 1)
10    {
11      @s = @s + @ss[@i,@j] + "+";
12    }
13    @s = @s[1,size(@s)-1] + ";";
14    @s;
15  }
16}
17firsts("s",6,"abcdefg");
18LIB "tst.lib";tst_status(1);$;
Note: See TracBrowser for help on using the repository browser.