|
Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.StrictMath
public final class StrictMath
Class StrictMath provides various numeric operations using the standards set by the known "Freely Distributable Math Library" (fdlibm). The standard is set by the January 4th, 1995 version of the library.
| Field Summary | |
|---|---|
static double |
E
Standard math constant |
static double |
PI
Standard math constant |
| Method Summary | |
|---|---|
static double |
abs(double d)
Answers the absolute value of the argument. |
static float |
abs(float f)
Answers the absolute value of the argument. |
static int |
abs(int i)
Answers the absolute value of the argument. |
static long |
abs(long l)
Answers the absolute value of the argument. |
static double |
acos(double d)
Answers the closest double approximation of the arc cosine of the argument |
static double |
asin(double d)
Answers the closest double approximation of the arc sine of the argument |
static double |
atan(double d)
Answers the closest double approximation of the arc tangent of the argument |
static double |
atan2(double d1,
double d2)
Answers the closest double approximation of the arc tangent of the result of dividing the first argument by the second argument. |
static double |
ceil(double d)
Answers the double conversion of the most negative (i.e. |
static double |
cos(double d)
Answers the closest double approximation of the cosine of the argument |
static double |
exp(double d)
Answers the closest double approximation of the raising "e" to the power of the argument |
static double |
floor(double d)
Answers the double conversion of the most positive (i.e. |
static double |
IEEEremainder(double d1,
double d2)
Answers the remainder of dividing the first argument by the second using the IEEE 754 rules. |
static double |
log(double d)
Answers the closest double approximation of the natural logarithm of the argument |
static double |
max(double d1,
double d2)
Answers the most positive (i.e. closest to positive infinity) of the two arguments. |
static float |
max(float f1,
float f2)
Answers the most positive (i.e. closest to positive infinity) of the two arguments. |
static int |
max(int i1,
int i2)
Answers the most positive (i.e. closest to positive infinity) of the two arguments. |
static long |
max(long l1,
long l2)
Answers the most positive (i.e. closest to positive infinity) of the two arguments. |
static double |
min(double d1,
double d2)
Answers the most negative (i.e. closest to negative infinity) of the two arguments. |
static float |
min(float f1,
float f2)
Answers the most negative (i.e. closest to negative infinity) of the two arguments. |
static int |
min(int i1,
int i2)
Answers the most negative (i.e. closest to negative infinity) of the two arguments. |
static long |
min(long l1,
long l2)
Answers the most negative (i.e. closest to negative infinity) of the two arguments. |
static double |
pow(double d1,
double d2)
Answers 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)
Answers the double conversion of the result of rounding the argument to an integer. |
static long |
round(double d)
Answers the result of rounding the argument to an integer. |
static int |
round(float f)
Answers the result of rounding the argument to an integer. |
static double |
sin(double d)
Answers the closest double approximation of the sine of the argument |
static double |
sqrt(double d)
Answers the closest double approximation of the square root of the argument |
static double |
tan(double d)
Answers the closest double approximation of the 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 |
| 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 ceil(double d)
d - the value to be converted
public static double cos(double d)
d - the value to compute cos of
public static double exp(double d)
d - the value to compute the exponential of
public static double floor(double d)
d - the value to be converted
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 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 random()
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 sin(double d)
d - the value to compute sin of
public static double sqrt(double d)
d - the value to compute sqrt of
public static double tan(double d)
d - the value to compute tan of
public static double toDegrees(double angrad)
angrad - an angle in radians
public static double toRadians(double angdeg)
angdeg - an angle in degrees
|
Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||