spielwiese
Last change
on this file since b35b93 was
b35b93,
checked in by Olaf Bachmann <obachman@…>, 26 years ago
|
This commit was generated by cvs2svn to compensate for changes in r1396,
which included commits to RCS files with non-trunk default branches.
git-svn-id: file:///usr/local/Singular/svn/trunk@1397 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
317 bytes
|
Line | |
---|
1 | proc 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 | } |
---|
17 | firsts("s",6,"abcdefg"); |
---|
18 | $; |
---|
Note: See
TracBrowser
for help on using the repository browser.