Skip to content
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

simplify complex atanh and remove singularity perturbation #55268

Merged
Merged
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
fix test
  • Loading branch information
oscardssmith committed Aug 7, 2024
commit 5bb4de269b209c4e4ab2560a7e8b76614430672c
4 changes: 2 additions & 2 deletions test/complex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ end
end

@testset "issue #55266" begin
for T in (ComplexF32, ComplexF64)
@test isapprox(atanh(1+nextfloat(zero(T))), T(atanh(1+big(nextfloat(zero(T))))))
for T in (Float32, Float64)
oscardssmith marked this conversation as resolved.
Show resolved Hide resolved
@test isapprox(atanh(1+im*floatmin(T)), T(atanh(1+im*big(floatmin(T)))))
end
end
Loading