Usually microoptimization is only done in C or C++, but it works quite well in Java too. For a project I needed very fast log() and exp() calculations, and Java’s Math.log() and Math.exp() just doesn’t cut it. After a bit of research I have found the following approximations that are good enough for me: UPDATE This pow() approximation is obsolete. I have a much faster and more accurate approximati
![Optimized Exponential Functions for Java](https://cdn-ak-scissors.b.st-hatena.com/image/square/be0167e6c711a8ce171d26412315e973ef54c1c7/height=288;version=1;width=512/http%3A%2F%2Fmartin.ankerl.com%2Fimg%2Fme.jpg)