Closed DavideFauri closed 6 years ago
How about?
e^x = base^exponent
=> x = exponent * ln( base)
base^exponent = e^(exponent * ln( base))
This is still a floating point exponent but it may get us closer.
Easier problem to solve
Yes, that is probably the way to do it.
This would mean to re-write the Exp
function so it does not call the Power
function, but I can again use Taylor series approximation.
I have a PR ready for that, give me a moment :)
Believe we can close this issue.
As the title says, the source code for the Power(number, exponent) function seems to work only with integer exponents.
At the moment I'm trying to research the best way to do it, probably with some mathematical trick involving logarithms and exponentiation. In the meanwhile, could you put it in the todolist?