I just downloaded the openjdk source and came to understand that almost the entire java.lang.Math class was implemented in native c / C ++ code. I was wondering if there were any implementations fully written in java.
Take a look at MicroFloat . It targets the J2ME platform, and according to the author, it implements all the methods in java.lang.Math.
Currently, some pure Java enhancements for methods of the java.lang.Math class are integrated in apache commons-math:
java.lang.Math
See: Elementary functions in JDK are slower than necessary and not as accurate as possible.