Both the Java and C libraries provide built-in functions to compute absolute value, power, square root, transcendental , trigonometric, rounding, and other mathematical functions. The built-in math capability of the two languages is quite similar, even some of the function/method names are identical. C has some built-in functions that Java does not ”the hyperbolic trigonometric and base 10 logarithm functions, for example. Java has some math methods that C does not, the toRadians() , min() , and max() methods for instance. Java takes advantage of method overloading to streamline its math methods. While C has to define three absolute value methods, one for each of three data types, Java only has to define one absolute value method that can take integer or floating point arguments. |