I just downloaded the openjdk source and came to the realization that nearly all of the java.lang.Math class was implemented in native c/c++ code. I was wondering if there were any implementations that were fully written in java.
+5
A:
Have a look at MicroFloat. It targets J2ME platform and according to the author it implements all methods in java.lang.Math.
kgiannakakis
2010-10-06 07:43:00
Wow that looks great!
Link
2010-10-06 08:23:26
+1
A:
Currently some pure Java improvements for methods in the java.lang.Math
class are integrated into apache commons-math:
See: Elementary functions in JDK are slower than necessary and not as accurate as they could be.
axelclk
2010-10-10 12:14:06