spielwiese
Last change
on this file since 33ec11 was
2e49a5,
checked in by Olaf Bachmann <obachman@…>, 23 years ago
|
* initial commit
git-svn-id: file:///usr/local/Singular/svn/trunk@5001 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
188 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | |
---|
3 | ring R = 0, x, lp; |
---|
4 | number s; |
---|
5 | |
---|
6 | tst_InitTimer(); |
---|
7 | |
---|
8 | for (int i = 1; i <= 1000; i++) |
---|
9 | { |
---|
10 | s = s + 1/number(i); |
---|
11 | } |
---|
12 | |
---|
13 | tst_ReportTimer("B"); |
---|
14 | |
---|
15 | s; |
---|
16 | kill R; |
---|
17 | |
---|
18 | tst_status(1); $ |
---|
Note: See
TracBrowser
for help on using the repository browser.