autodesk 3ds max 2012 office visio premium 2010 microsoft visual studio test professional 2010 microsoft office 2011 home & business mac Symantec Norton Ghost 12.0 windows xp professional sp3 (32 bit) RosettaStone Japanese Level 1, 2 & 3 Set windows vista business Knoll Light Factory for Photoshop 3 MAC autodesk 3ds max 2012 autodesk autocad raster design 2011 autodesk autocad revit architecture 2009 cs5 production premium mac illustrator cs4 mac GFI MailSecurity 10.0 microsoft office 2010 home and student autodesk mudbox 2012 Apple Motion 5 MAC after effects cs4 mac The Java Math Class Copyright, 2002, Susan Anderson-Freed


The MathClass

Java contains a Math class that implements several frequently used methods. The method names and parameters closely resemble their C, C++, and JavaScript counterparts. In fact, if you're familiar with the math methods in one language, learning the minor changes required to use the methods in Java should pose no problem. The complete list of Math methods is found in the following table.

The Math Class Methods
ceil(x) Return the integer above x floor(x) Return the integer below x
round(x) Return the rounded integer abs(x) Return the absolute value of x
sqrt(x) Return the square root of x min(x,y) Return the minimum of x and y
max(x,y) Return the maximum of x and y pow(x,y) Raise x to the y power.
cos(x) Return the cosine of x sin(x) Return the sine of x
tan(x) Return the tangent of x acos(x) Return the arc cosine ofx
asin(x) Return the arcsine of x atan(x) Return the arctangent of x