Skip to content

Commit

Permalink
log(e,x) = log(x), as discussed in JuliaLang#5805
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Feb 17, 2014
1 parent 48c62f2 commit c1ed5e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/constants.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ end
^(::MathConst{:e}, x::AbstractMatrix) = expm(x)

log(::MathConst{:e}) = 1 # use 1 to correctly promote expressions like log(x)/log(e)
log(::MathConst{:e}, x) = log(x)

0 comments on commit c1ed5e7

Please sign in to comment.