Pure java implementation of the java.lang.Math class

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.

+7
java math openjdk native
source share
2 answers

Take a look at MicroFloat . It targets the J2ME platform, and according to the author, it implements all the methods in java.lang.Math.

+7
source share

Currently, some pure Java enhancements for methods of the java.lang.Math class are integrated in apache commons-math:

See: Elementary functions in JDK are slower than necessary and not as accurate as possible.

+2
source share

All Articles