This is an archive of the discontinued LLVM Phabricator instance.

Fix buggy numerics of tanh(complex) at inf #361
ClosedPublic

Authored by zasdfgbnm on Oct 21 2021, 11:11 AM.

Details

Summary

Because:
lim[x->inf, tanh(x+iy)] = 1
lim[x->-inf, tanh(x+iy)] = -1

See also:
https://github.com/NVIDIA/libcudacxx/pull/210

Diff Detail

Event Timeline

zasdfgbnm requested review of this revision.Oct 21 2021, 11:11 AM
zasdfgbnm created this revision.
Herald added a reviewer: Restricted Project. · View Herald TranscriptOct 21 2021, 11:11 AM
wmaxey added a subscriber: wmaxey.Oct 21 2021, 11:15 AM
ldionne accepted this revision.Oct 21 2021, 2:07 PM
This revision is now accepted and ready to land.Oct 21 2021, 2:07 PM

Thanks a lot for the patch, committing using your GitHub information (for attribution).

This revision was automatically updated to reflect the committed changes.