Skip to content

Commit 156bfca

Browse files
author
maechler
committed
pbeta() -> bratio() no longer overflows for pbeta(., <large>, <large>)
git-svn-id: https://svn.r-project.org/R/trunk@88248 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent b74df4b commit 156bfca

File tree

3 files changed

+155
-132
lines changed

3 files changed

+155
-132
lines changed

doc/NEWS.Rd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@
152152
\item \code{prettyNum(*, zero.print={>=1-char}, replace.zero=TRUE)}
153153
now works as documented, thanks to Marttila Mikko and Ivan Krylov's
154154
messages on R-devel.
155+
156+
\code{pbeta(x, a,b, ..)} for very large \code{a,b} no longer returns
157+
\code{NaN} but the correct values (0 or 1, or their logs for \code{log.p = TRUE}).
158+
This improves Mathlib's C level \code{bratio()} and hence also
159+
\code{pnbinom()}, etc..
155160
}
156161
}
157162
}

0 commit comments

Comments
 (0)