mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Issue #9186: log1p(-1.0) should raise ValueError, not OverflowError.
This commit is contained in:
parent
9c91eb844c
commit
be64d95169
4 changed files with 75 additions and 9 deletions
|
@ -896,7 +896,7 @@ FUNC1A(gamma, m_tgamma,
|
|||
"gamma(x)\n\nGamma function at x.")
|
||||
FUNC1A(lgamma, m_lgamma,
|
||||
"lgamma(x)\n\nNatural logarithm of absolute value of Gamma function at x.")
|
||||
FUNC1(log1p, m_log1p, 1,
|
||||
FUNC1(log1p, m_log1p, 0,
|
||||
"log1p(x)\n\nReturn the natural logarithm of 1+x (base e).\n"
|
||||
"The result is computed in a way which is accurate for x near zero.")
|
||||
FUNC1(sin, sin, 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue