Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pure java implementation of the java.lang.Math class

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.

like image 555
Link Avatar asked Oct 06 '10 07:10

Link


People also ask

What is Lang Math 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.

Is Java Lang Math a class?

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.

How do I import Java Lang Math package?

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.


1 Answers

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

like image 182
kgiannakakis Avatar answered Sep 19 '22 15:09

kgiannakakis