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.
The java. lang. Math class contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.
The java.lang. Math class provides Java's math library. All its methods are static and used directly; you don't have to (and you can't) instantiate a Math object.
To import Math in Java, you can use the “java. lang” package to access the methods or variables of the Java Math class with their class name. Another way to import a Math class is to add the “java. lang.
Have a look at MicroFloat. It targets J2ME platform and according to the author it implements all methods in java.lang.Math.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With