github.com/gopherd/gonum@v0.0.4/internal/math32/sqrt_arm64.go (about)

     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  //go:build !noasm && !gccgo && !safe
    10  // +build !noasm,!gccgo,!safe
    11  
    12  package math32
    13  
    14  // Sqrt returns the square root of x.
    15  //
    16  // Special cases are:
    17  //	Sqrt(+Inf) = +Inf
    18  //	Sqrt(±0) = ±0
    19  //	Sqrt(x < 0) = NaN
    20  //	Sqrt(NaN) = NaN
    21  func Sqrt(x float32) float32