Built-In Math Functions


Both the Java and C++ libraries provide standard 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 and many of the function/method names are identical. The C++ language has some built-in math capability that Java does not, specifically the hyperbolic trigonometric and base 10 logarithmic functions. Java has some math methods that C++ does not ” the toRadians() , min() , and max() methods for instance. Both Java and C++ make use of method overloading to define multiple versions of some mathematical functions that take different types of input 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