8000 BUG: Increase accuracy of log1p for small inputs by mfkasim1 · Pull Request #22611 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Increase accuracy of log1p for small inputs #22611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TST: Added infj test for log1p complex
  • Loading branch information
mfkasim1 committed Nov 18, 2022
commit efd5c8242c5781204bbb69a466ddb582cc0f4a5c
1 change: 1 addition & 0 deletions numpy/core/tests/test_umath.py
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,7 @@ def test_special(self):
assert_equal(ncu.log1p(np.nan + 1j), np.nan + np.nan * 1j)
assert_equal(ncu.log1p(np.inf + 1j), np.inf + 0j)
assert_equal(ncu.log1p(-np.inf + 1j), np.inf + np.pi * 1j)
assert_equal(ncu.log1p(complex(0, np.inf)), np.inf + np.pi * 0.5j)
assert_equal(ncu.log1p(-1 + 0j), -np.inf + 0j)

class TestExpm1:
Expand Down
0