spielwiese
Last change
on this file since 41eaf02 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:
450 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | |
---|
3 | proc hilbert (int n) |
---|
4 | { |
---|
5 | matrix a[n][n]; |
---|
6 | int j; |
---|
7 | for (int i = 1; i <= n; i++) |
---|
8 | { |
---|
9 | for (j = 1; j <= n; j++) |
---|
10 | { |
---|
11 | a[i, j] = 1/(number(i) + number(j) - 1); |
---|
12 | } |
---|
13 | } |
---|
14 | return(a); |
---|
15 | } |
---|
16 | |
---|
17 | int n = 70; |
---|
18 | |
---|
19 | ring R = 0, x, lp; |
---|
20 | matrix hn[n][n]; |
---|
21 | hn = hilbert(n); |
---|
22 | module mn = module(hn); |
---|
23 | |
---|
24 | tst_InitTimer(); |
---|
25 | |
---|
26 | poly dh70 = det(mn); |
---|
27 | |
---|
28 | tst_ReportTimer("H"); |
---|
29 | |
---|
30 | dh70; |
---|
31 | |
---|
32 | kill R, n, hilbert; |
---|
33 | |
---|
34 | tst_status(1); $ |
---|
35 | |
---|
36 | |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.