Java Math | Sololearn: Learn to code for FREE!


Java Math

Is Java Math actually perfect? Or are there other programming languages with better math? as in, like judging factors such as the accuracy of answer,etc.

3 Answers

New Answer


One thing the Java standard library doesn't do is units. As in, when you divide a distance by a duration you get a velocity. It doesn't do calculus like derivatives or reversing functions. There are no classes for the algebraic structures like polynomials or vector spaces. And that is not even the "special" things. There may be libraries to do all those things; Scala Squants and Spire might work from Java. You might not be needing most of that (although you can never go wrong with typing your units, lest you loose Mars lander). But no, nothing in the world perfect and so that is true for the Java standard library.



MATLAB and R is good for math