The Go Programming Language

Source file src/pkg/math/sqrt.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	package math
     6	
     7	// Sqrt returns the square root of x.
     8	//
     9	// Special cases are:
    10	//	Sqrt(+Inf) = +Inf
    11	//	Sqrt(±0) = ±0
    12	//	Sqrt(x < 0) = NaN
    13	//	Sqrt(NaN) = NaN
    14	func Sqrt(x float64) float64 { return sqrtGo(x) }

release.r60.3. Except as noted, this content is licensed under a Creative Commons Attribution 3.0 License.