-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the accuracy of complex atanh and atan (#2513)
As in the title. The accuracy improvements are as follows (using ca 1000000 samples over the entire complex plane): - complex64 atanh: ``` current main -> this PR ULP difference == 0 count is 257275 -> 868955 ULP difference == 1 count is 24034 -> 130206 ULP difference == 2 count is 1280 -> 2832 ULP difference == 3 count is 2903 -> 12 ULP difference >= 4 count is 716513 -> 0 ``` - complex64 atan: ``` ULP difference == 0 count is 3326 -> 868953 ULP difference == 1 count is 6970 -> 130204 ULP difference == 2 count is 3384 -> 2832 ULP difference == 3 count is 3418 -> 12 ULP difference >= 4 count is 984903 -> 0 ``` - complex128 atanh: ``` ULP difference == 0 count is 239712 -> 941283 ULP difference == 1 count is 2853 -> 60322 ULP difference == 2 count is 616 -> 400 ULP difference == 3 count is 8 -> 0 ULP difference >= 4 count is 758816 -> 0 ``` This PR requires functional_algorithms 0.10.1 or newer.
- Loading branch information
Showing
14 changed files
with
523 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.