Optimized pow() approximation for Java, C / C++, and C# – Martin Ankerl
Now we have expressed the pow calculation with e^x and ln(x). We already have the e^x approximation, but no good ln(x). The old approximation is very bad, so we need a better one. So what now? Approximation of ln(x) Here comes the big trick: Rember that w...