Why not using the in C++ existing power functions?
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/pow-powf-powl?view=msvc-170
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to replicate the POWER calculation in microsoft excel using C++.
It's meant to be able to handle real number bases and exponents.
I've tried using a Taylor series expansion but it doesn't match excel output to the desired precision. Especially for really large or small results. Are there other methods (series, iterative or others) to calculate power... Preferably, does anyone know how it's evaluated on excel?
Any help is much appreciated
Why not using the in C++ existing power functions?
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/pow-powf-powl?view=msvc-170
Thanks Olaf Helper i'm greatfull. I found soulution to the problem now.