Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect sign of atanh(complex(x,y)) if x == -1 (JuliaLang#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 <[email protected]> * 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 <[email protected]> * Tests for expressions that were signed incorrectly * Use the correct type for 1 * Update doc * Update doc: Remove trailing whitespace
- Loading branch information