|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Math
public final class Math
Class math provides various floating point support routines and some standard constants.
| Field Summary | |
|---|---|
static double |
E
The double value closest to e, the base of the natural logarithm. |
static double |
PI
The double value closest to pi, the ratio of a circle's circumference to its diameter. |
| Method Summary | |
|---|---|
static double |
abs(double d)
Returns the absolute value of the argument. |
static float |
abs(float f)
Returns the absolute value of the argument. |
static int |
abs(int i)
Returns the absolute value of the argument. |
static long |
abs(long l)
Returns the absolute value of the argument. |
static double |
acos(double d)
Returns the closest double approximation of the arc cosine of the argument |
static double |
asin(double d)
Returns the closest double approximation of the arc sine of the argument |
static double |
atan(double d)
Returns the closest double approximation of the arc tangent of the argument |
static double |
atan2(double d1,
double d2)
Returns the closest double approximation of the arc tangent of the result of dividing the first argument by the second argument. |
static double |
cbrt(double d)
Returns the closest double approximation of the cube root of the argument. |
static double |
ceil(double d)
Returns the double conversion of the most negative (i.e. |
static double |
cos(double d)
Returns the closest double approximation of the cosine of the argument |
static double |
cosh(double d)
Returns the closest double approximation of the hyperbolic cosine of the argument. |
static double |
exp(double d)
Returns the closest double approximation of the raising "e" to the power of the argument |
static double |
expm1(double d)
Returns the closest double approximation of ed - 1. |
static double |
floor(double d)
Returns the double conversion of the most positive (i.e. |
static double |
hypot(double x,
double y)
Returns sqrt(x2+y2). |
static double |
IEEEremainder(double d1,
double d2)
Returns the remainder of dividing the first argument by the second using the IEEE 754 rules. |
static double |
log(double d)
Returns the closest double approximation of the natural logarithm of the argument |
static double |
log10(double d)
Returns the closest double approximation of the base 10 logarithm of the argument |
static double |
log1p(double d)
Returns the closest double approximation of the natural logarithm of the sum of the argument and 1. |
static double |
max(double d1,
double d2)
Returns the most positive (i.e. |
static float |
max(float f1,
float f2)
Returns the most positive (i.e. |
static int |
max(int i1,
int i2)
Returns the most positive (i.e. |
static long |
max(long l1,
long l2)
Returns the most positive (i.e. |
static double |
min(double d1,
double d2)
Returns the most negative (i.e. |
static float |
min(float f1,
float f2)
Returns the most negative (i.e. |
static int |
min(int i1,
int i2)
Returns the most negative (i.e. |
static long |
min(long l1,
long l2)
Returns the most negative (i.e. |
static double |
pow(double d1,
double d2)
Returns the closest double approximation of the result of raising the first argument to the power of the second. |
static double |
random()
Returns a pseudo-random number between 0.0 and 1.0. |
static double |
rint(double d)
Returns the double conversion of the result of rounding the argument to an integer. |
static long |
round(double d)
Returns the result of rounding the argument to an integer. |
static int |
round(float f)
Returns the result of rounding the argument to an integer. |
static double |
signum(double d)
Returns the signum function of the argument. |
static float |
signum(float f)
Returns the signum function of the argument. |
static double |
sin(double d)
Returns the closest double approximation of the sine of the argument |
static double |
sinh(double d)
Returns the closest double approximation of the hyperbolic sine of the argument. |
static double |
sqrt(double d)
Returns the closest double approximation of the square root of the argument |
static double |
tan(double d)
Returns the closest double approximation of the tangent of the argument |
static double |
tanh(double d)
Returns the closest double approximation of the hyperbolic tangent of the argument. |
static double |
toDegrees(double angrad)
Returns the measure in degrees of the supplied radian angle |
static double |
toRadians(double angdeg)
Returns the measure in radians of the supplied degree angle |
static double |
ulp(double d)
Returns the argument's ulp. |
static float |
ulp(float f)
Returns the argument's ulp. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double E
public static final double PI
| Method Detail |
|---|
public static double abs(double d)
d - the value to be converted
public static float abs(float f)
f - the value to be converted
public static int abs(int i)
i - the value to be converted
public static long abs(long l)
l - the value to be converted
public static double acos(double d)
d - the value to compute acos of
public static double asin(double d)
d - the value to compute asin of
public static double atan(double d)
d - the value to compute atan of
public static double atan2(double d1,
double d2)
d1 - the numerator of the value to compute atan ofd2 - the denominator of the value to compute atan of
public static double cbrt(double d)
d - the value to compute cube root of
public static double ceil(double d)
d - the value to be converted
public static double cos(double d)
d - the angle to compute the cosine of, in radians
public static double cosh(double d)
d - the value to compute hyperbolic cosine of
public static double exp(double d)
d - the value to compute the exponential of
public static double expm1(double d)
d - the value to compute the ed - 1 of
public static double floor(double d)
d - the value to be converted
public static double hypot(double x,
double y)
x - a double numbery - a double number
public static double IEEEremainder(double d1,
double d2)
d1 - the numerator of the operationd2 - the denominator of the operation
public static double log(double d)
d - the value to compute the log of
public static double log10(double d)
d - the value to compute the log10 of
public static double log1p(double d)
d - the value to compute the ln(1+d) of
public static double max(double d1,
double d2)
d1 - the first argument to checkd2 - the second argument
public static float max(float f1,
float f2)
f1 - the first argument to checkf2 - the second argument
public static int max(int i1,
int i2)
i1 - the first argument to checki2 - the second argument
public static long max(long l1,
long l2)
l1 - the first argument to checkl2 - the second argument
public static double min(double d1,
double d2)
d1 - the first argument to checkd2 - the second argument
public static float min(float f1,
float f2)
f1 - the first argument to checkf2 - the second argument
public static int min(int i1,
int i2)
i1 - the first argument to checki2 - the second argument
public static long min(long l1,
long l2)
l1 - the first argument to checkl2 - the second argument
public static double pow(double d1,
double d2)
d1 - the base of the operation.d2 - the exponent of the operation.
public static double rint(double d)
d - the value to be converted
public static long round(double d)
d - the value to be converted
public static int round(float f)
f - the value to be converted
public static double signum(double d)
d - the value to compute signum function of
public static float signum(float f)
f - the value to compute signum function of
public static double sin(double d)
d - the angle to compute the sine of, in radians
public static double sinh(double d)
d - the value to compute hyperbolic sine of
public static double sqrt(double d)
d - the value to compute sqrt of
public static double tan(double d)
d - the angle to compute the tangent of, in radians
public static double tanh(double d)
d - the value to compute hyperbolic tangent of
public static double random()
public static double toRadians(double angdeg)
angdeg - an angle in degrees
public static double toDegrees(double angrad)
angrad - an angle in radians
public static double ulp(double d)
d - the floating-point value to compute ulp of
public static float ulp(float f)
f - the floating-point value to compute ulp of
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||