dlapy2.go 396 B

1234567891011121314
  1. // Copyright ©2015 The Gonum Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package gonum
  5. import "math"
  6. // Dlapy2 is the LAPACK version of math.Hypot.
  7. //
  8. // Dlapy2 is an internal routine. It is exported for testing purposes.
  9. func (Implementation) Dlapy2(x, y float64) float64 {
  10. return math.Hypot(x, y)
  11. }