Skip to content

Commit

Permalink
asinh symmetry
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySarnoff committed Mar 14, 2019
1 parent 9a41fd8 commit e9c02e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/math/elementary/complex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ t12 = -t11

function asinh(x::Complex{DoubleFloat{T}}) where {T}
r, i = real(x), imag(x)
signbit(r) && return - asinh(-x)
r2 = r*r
ip1sqr = (i + 1)^2
sqrta = sqrt(r2 + ip1sqr)
Expand Down

0 comments on commit e9c02e8

Please sign in to comment.