Built-in Math Functions


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.



Technical Java. Applications for Science and Engineering
Technical Java: Applications for Science and Engineering
ISBN: 0131018159
EAN: 2147483647
Year: 2003
Pages: 281
Authors: Grant Palmer

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net