Class MathUtility

java.lang.Object
  extended by MathUtility

public class MathUtility
extends java.lang.Object


Field Summary
static double PI
          Gives the value of pi to 5 decimal places.
 
Method Summary
static double circleArea(double radius)
          Returns the area of the circle with the given radius.
static double sphereVolume(double radius)
          Returns the volume of the sphere with the given radius.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PI

public static final double PI
Gives the value of pi to 5 decimal places.

See Also:
Constant Field Values
Method Detail

circleArea

public static double circleArea(double radius)
Returns the area of the circle with the given radius.

Parameters:
radius - Radius of the circle
Returns:
Area of the circle

sphereVolume

public static double sphereVolume(double radius)
Returns the volume of the sphere with the given radius.

Parameters:
radius -
Returns:
Volume of the sphere