^(::AbstractIrrational, ::Integer)
should probably behave like ^(::Float64, ::Integer)
instead of like ^(::Integer, ::Integer)
#55961
Labels
maths
Mathematical functions
Among the
Irrational
constants, onlyℯ
works as a base for exponentiation here, I guess because that case gets forwarded toexp
.I guess the fix is to define a method something like the following:
The text was updated successfully, but these errors were encountered: