We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4b80e3 commit a5e2069Copy full SHA for a5e2069
base/mathconstants.jl
@@ -85,7 +85,7 @@ catalan
85
for T in (AbstractIrrational, Rational, Integer, Number)
86
Base.:^(::Irrational{:ℯ}, x::T) = exp(x)
87
end
88
-@generated Base.literal_pow(::typeof(^), ::Irrational{:ℯ}, ::Val{p}) where {p} = exp(p)
+Base.literal_pow(::typeof(^), ::Irrational{:ℯ}, ::Val{p}) where {p} = exp(p)
89
90
Base.log(::Irrational{:ℯ}) = 1 # use 1 to correctly promote expressions like log(x)/log(ℯ)
91
Base.log(::Irrational{:ℯ}, x::Number) = log(x)
0 commit comments