java.lang.Object | +--java.lang.Math
Field Summary | |
static double |
E
The double value that is closer than any other to
e , the base of the natural logarithms. |
static double |
PI
The double value that is closer than any other to
pi, the ratio of the circumference of a circle to its diameter. |
Method Summary | |
static double |
abs(double a)
Returns the absolute value of a double value. |
static int |
abs(int a)
Returns the absolute value of an int value. |
static double |
acos(double a)
Returns the arc cosine of an angle, in the range of 0.0 through pi. |
static double |
asin(double a)
Returns the arc sine of an angle, in the range of -pi/2 through pi/2. |
static double |
atan(double a)
Returns the arc tangent of an angle, in the range of -pi/2 through pi/2. |
static double |
ceil(double a)
Returns the smallest (closest to negative infinity) double value that is not less than the argument and is
equal to a mathematical integer. |
static double |
cos(double a)
Returns the trigonometric cosine of an angle. |
static double |
exp(double a)
Returns the exponential number e (i.e., 2.718...) raised to the power of a double value. |
static double |
floor(double a)
Returns the largest (closest to positive infinity) double value that is not greater than the argument and
is equal to a mathematical integer. |
static double |
log(double a)
Returns the natural logarithm (base e) of a double
value. |
static double |
max(double a,
double b)
Returns the greater of two double values. |
static int |
max(int a,
int b)
Returns the greater of two int values. |
static double |
min(double a,
double b)
Returns the smaller of two double values. |
static int |
min(int a,
int b)
Returns the smaller of two int values. |
static double |
pow(double a,
double b)
Returns of value of the first argument raised to the power of the second argument. |
static double |
random()
Returns a random number greater than or equal to 0.0
and less than 1.0 . |
static int |
round(float a)
Returns the closest int to the argument. |
static double |
sin(double a)
Returns the trigonometric sine of an angle. |
static double |
sqrt(double a)
Returns the square root of a double value. |
static double |
tan(double a)
Returns the trigonometric tangent of an angle. |
static double |
toDegrees(double angrad)
Converts an angle measured in radians to the equivalent angle measured in degrees. |
static double |
toRadians(double angdeg)
Converts an angle measured in degrees to the equivalent angle measured in radians. |