Permalink
Browse files

log(e,x) = log(x), as discussed in #5805

  • Loading branch information...
1 parent 48c62f2 commit c1ed5e74b1434f23bd3d24c92e0d226aa8064487 @stevengj stevengj committed Feb 17, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 base/constants.jl
View
@@ -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.