Skip to content

Commit

Permalink
remove two(x)
Browse files Browse the repository at this point in the history
  • Loading branch information
cossio committed May 21, 2020
1 parent be9c870 commit 60dd211
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/erf.jl
Expand Up @@ -529,5 +529,4 @@ function logerf(a::Real, b::Real)
end
end

two(x::Number) = oftype(x, 2)
log1mexp(x::Real) = x < -log(two(x)) ? log1p(-exp(x)) : log(-expm1(x))
log1mexp(x::Real) = x < -log(oftype(x, 2)) ? log1p(-exp(x)) : log(-expm1(x))

0 comments on commit 60dd211

Please sign in to comment.