Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1613)

Delta Between Two Patch Sets: src/pkg/math/sqrt.go

Issue 1098041: code review 1098041: math: signed zero Sqrt special case (Closed)
Left Patch Set: Created 14 years, 11 months ago
Right Patch Set: code review 1098041: math: signed zero Sqrt special case Created 14 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/math/all_test.go ('k') | src/pkg/math/sqrt_port.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package math 5 package math
6 6
7 // Sqrt returns the square root of x. 7 // Sqrt returns the square root of x.
8 // 8 //
9 // Special cases are: 9 // Special cases are:
10 // Sqrt(+Inf) = +Inf 10 // Sqrt(+Inf) = +Inf
11 // Sqrt(±0) = ±0 11 // Sqrt(±0) = ±0
12 // Sqrt(x < 0) = NaN 12 // Sqrt(x < 0) = NaN
13 // Sqrt(NaN) = NaN 13 // Sqrt(NaN) = NaN
14 func Sqrt(x float64) float64 { return sqrtGo(x) } 14 func Sqrt(x float64) float64 { return sqrtGo(x) }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b