Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
79ae1ad4
Commit
79ae1ad4
authored
Mar 22, 2013
by
Oling Cat
Committed by
Nigel Tao
Mar 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
math: remove repeated comment.
R=golang-dev, nigeltao CC=golang-dev
https://golang.org/cl/7835046
parent
f308efd8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
sqrt.go
src/pkg/math/sqrt.go
+2
-9
No files found.
src/pkg/math/sqrt.go
View file @
79ae1ad4
...
...
@@ -4,15 +4,6 @@
package
math
// Sqrt returns the square root of x.
//
// Special cases are:
// Sqrt(+Inf) = +Inf
// Sqrt(±0) = ±0
// Sqrt(x < 0) = NaN
// Sqrt(NaN) = NaN
func
Sqrt
(
x
float64
)
float64
// The original C code and the long comment below are
// from FreeBSD's /usr/src/lib/msun/src/e_sqrt.c and
// came with this notice. The go code is a simplified
...
...
@@ -98,6 +89,8 @@ func Sqrt(x float64) float64
// Sqrt(±0) = ±0
// Sqrt(x < 0) = NaN
// Sqrt(NaN) = NaN
func
Sqrt
(
x
float64
)
float64
func
sqrt
(
x
float64
)
float64
{
// special cases
switch
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment