views:

98

answers:

2

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
Wow that looks great!
Link
+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