Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
f401cb3e
Commit
f401cb3e
authored
Jul 07, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=31270 CL=31272
parent
5abf395b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
hilbert.go
test/hilbert.go
+2
-2
No files found.
test/hilbert.go
View file @
f401cb3e
...
...
@@ -74,7 +74,7 @@ func NewHilbert(n int) *Matrix {
a
:=
NewMatrix
(
n
,
n
);
for
i
:=
0
;
i
<
n
;
i
++
{
for
j
:=
0
;
j
<
n
;
j
++
{
x
:=
Big
.
Rat
(
1
,
i
+
j
+
1
);
x
:=
Big
.
Rat
(
1
,
i
nt64
(
i
+
j
+
1
)
);
a
.
set
(
i
,
j
,
x
);
}
}
...
...
@@ -95,7 +95,7 @@ func NewInverseHilbert(n int) *Matrix {
if
(
i
+
j
)
&
1
!=
0
{
x0
=
x0
.
Neg
();
}
x1
:=
Big
.
Rat
(
i
+
j
+
1
,
1
);
x1
:=
Big
.
Rat
(
i
nt64
(
i
+
j
+
1
)
,
1
);
x2
:=
MakeRat
(
Big
.
Binomial
(
uint
(
n
+
i
),
uint
(
n
-
j
-
1
)));
x3
:=
MakeRat
(
Big
.
Binomial
(
uint
(
n
+
j
),
uint
(
n
-
i
-
1
)));
x4
:=
MakeRat
(
Big
.
Binomial
(
uint
(
i
+
j
),
uint
(
i
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment