diff options
Diffstat (limited to 'libgo/go/math/hypot.go')
-rw-r--r-- | libgo/go/math/hypot.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libgo/go/math/hypot.go b/libgo/go/math/hypot.go index a6fa84c..59b9c74 100644 --- a/libgo/go/math/hypot.go +++ b/libgo/go/math/hypot.go @@ -12,8 +12,10 @@ package math // unnecessary overflow and underflow. // // Special cases are: -// Hypot(p, q) = +Inf if p or q is infinite -// Hypot(p, q) = NaN if p or q is NaN +// Hypot(±Inf, q) = +Inf +// Hypot(p, ±Inf) = +Inf +// Hypot(NaN, q) = NaN +// Hypot(p, NaN) = NaN func Hypot(p, q float64) float64 { return hypot(p, q) } |