Skip to content

Commit

Permalink
Merge 11eee2c into 9363ac5
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Jun 30, 2017
2 parents 9363ac5 + 11eee2c commit 272ec4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blas/gonum/internal/math32/math_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ func TestCopySign(t *testing.T) {
}

func TestHypot(t *testing.T) {
// tol is increased for Hypot to avoid failures
// related to https://github.com/gonum/gonum/issues/110.
const tol = 1e-6
f := func(x struct{ X, Y float32 }) bool {
y := Hypot(x.X, x.Y)
if math.Hypot(float64(x.X), float64(x.Y)) > math.MaxFloat32 {
Expand Down

0 comments on commit 272ec4c

Please sign in to comment.