Skip to content

Commit

Permalink
math: fix typos in Bessel function docs
Browse files Browse the repository at this point in the history
While we're at it, also document Yn(0, 0) = -Inf for completeness.

Fixes golang#18823.

Change-Id: Ib6db68f76d29cc2373c12ebdf3fab129cac8c167
Reviewed-on: https://go-review.googlesource.com/35970
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
  • Loading branch information
minux authored and griesemer committed Feb 16, 2017
1 parent 661e217 commit 211102c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/math/jn.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ func Jn(n int, x float64) float64 {
//
// Special cases are:
// Yn(n, +Inf) = 0
// Yn(n > 0, 0) = -Inf
// Yn(n 0, 0) = -Inf
// Yn(n < 0, 0) = +Inf if n is odd, -Inf if n is even
// Y1(n, x < 0) = NaN
// Y1(n, NaN) = NaN
// Yn(n, x < 0) = NaN
// Yn(n, NaN) = NaN
func Yn(n int, x float64) float64 {
const Two302 = 1 << 302 // 2**302 0x52D0000000000000
// special cases
Expand Down

0 comments on commit 211102c

Please sign in to comment.