Issue #9186: log1p(-1.0) should raise ValueError, not OverflowError.

This commit is contained in:
Mark Dickinson 2010-07-07 16:21:29 +00:00
parent 9c91eb844c
commit be64d95169
4 changed files with 75 additions and 9 deletions

View file

@ -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,