OSDN Git Service

new repo
[bytom/vapor.git] / vendor / gonum.org / v1 / gonum / internal / math32 / sqrt_amd64.go
1 // Copyright 2009 The Go 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
5 // Copyright ©2015 The Gonum Authors. All rights reserved.
6 // Use of this source code is governed by a BSD-style
7 // license that can be found in the LICENSE file.
8
9 //+build !noasm,!appengine
10
11 package math32
12
13 // Sqrt returns the square root of x.
14 //
15 // Special cases are:
16 //      Sqrt(+Inf) = +Inf
17 //      Sqrt(±0) = ±0
18 //      Sqrt(x < 0) = NaN
19 //      Sqrt(NaN) = NaN
20 func Sqrt(x float32) float32