Commit 66341a3
Fix incorrect sign of atanh(complex(x,y)) if x == -1 (#31061)
* Fix incorrect sign in atanh
In the case that x==-1, we have to flip the sign of ξ.
* Formatting: Add space after comma
Co-Authored-By: cafaxo <cafaxo@gmail.com>
* Add test
* Do not drop sign of zero
* Flip sign to avoid a DomainError
This fixes atanh(prevfloat(-1.0) + 0im)
* Test all four combinations
Co-Authored-By: cafaxo <cafaxo@gmail.com>
* Tests for expressions that were signed incorrectly
* Use the correct type for 1
* Update doc
* Update doc: Remove trailing whitespace1 parent f0d88dd commit 66341a3
File tree
3 files changed
+19
-6
lines changed- base
- stdlib/LinearAlgebra/src
- test
3 files changed
+19
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
955 | | - | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
956 | 960 | | |
957 | | - | |
958 | | - | |
| 961 | + | |
| 962 | + | |
959 | 963 | | |
960 | 964 | | |
961 | 965 | | |
| |||
970 | 974 | | |
971 | 975 | | |
972 | 976 | | |
973 | | - | |
| 977 | + | |
974 | 978 | | |
975 | 979 | | |
976 | 980 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
929 | | - | |
930 | | - | |
| 929 | + | |
| 930 | + | |
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
| 699 | + | |
699 | 700 | | |
| 701 | + | |
700 | 702 | | |
701 | 703 | | |
702 | 704 | | |
| |||
1065 | 1067 | | |
1066 | 1068 | | |
1067 | 1069 | | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
0 commit comments