|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object joeq.Support.JMath
public final class JMath
Field Summary | |
---|---|
static double |
E
|
static double |
PI
|
Constructor Summary | |
---|---|
JMath()
|
Method Summary | |
---|---|
static double |
abs(double x)
Returns the absolute value of its argument. |
static float |
abs(float x)
Returns the absolute value of its argument. |
static int |
abs(int x)
Returns the absolute value of its argument. |
static long |
abs(long x)
Returns the absolute value of its argument. |
static double |
acos(double x)
Returns the inverse (arc) cosine of its argument. |
static double |
asin(double x)
Returns the inverse (arc) sine of its argument. |
static double |
atan(double x)
Returns the inverse (arc) tangent of its argument. |
static double |
atan2(double y,
double x)
Returns angle corresponding to a Cartesian point. |
static double |
ceil(double x)
Returns the value of its argument rounded toward positive infinity to an integral value. |
static double |
cos(double x)
Returns the cosine of its argument. |
static double |
exp(double x)
Returns the exponential of its argument. |
static double |
floor(double x)
Returns the value of its argument rounded toward negative infinity to an integral value. |
static double |
IEEEremainder(double x,
double p)
Returns x REM p = x - [x/p]*p as if in infinite precise arithmetic, where [x/p] is the (infinite bit) integer nearest x/p (in half way case choose the even one). |
static double |
log(double x)
Returns the natural logarithm of its argument. |
static double |
max(double x,
double y)
Returns the larger of its two arguments. |
static float |
max(float x,
float y)
Returns the larger of its two arguments. |
static int |
max(int x,
int y)
Returns the larger of its two arguments. |
static long |
max(long x,
long y)
Returns the larger of its two arguments. |
static double |
min(double x,
double y)
Returns the smaller of its two arguments. |
static float |
min(float x,
float y)
Returns the smaller of its two arguments. |
static int |
min(int x,
int y)
Returns the smaller of its two arguments. |
static long |
min(long x,
long y)
Returns the smaller of its two arguments. |
static double |
pow(double x,
double y)
Returns x to the power y. |
static double |
random()
Returns the random number. |
static double |
rint(double x)
Returns the value of its argument rounded toward the closest integral value. |
static long |
round(double x)
Returns the long closest to the arguments. |
static int |
round(float x)
Returns the integer closest to the arguments. |
static double |
sin(double x)
Returns the sine of its argument. |
static double |
sqrt(double x)
Returns the square root of its argument. |
static double |
tan(double x)
Returns the tangent of its argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double PI
public static final double E
Constructor Detail |
---|
public JMath()
Method Detail |
---|
public static int abs(int x)
x
- The argument, an integer.
public static long abs(long x)
x
- The argument, a long.
public static float abs(float x)
x
- The argument, a float.
public static double abs(double x)
x
- The argument, a double.
public static int min(int x, int y)
x
- The first argument, an integer.y
- The second argument, an integer.
public static long min(long x, long y)
x
- The first argument, a long.y
- The second argument, a long.
public static float min(float x, float y)
x
- The first argument, a float.y
- The second argument, a float.
public static double min(double x, double y)
x
- The first argument, a double.y
- The second argument, a double.
public static int max(int x, int y)
x
- The first argument, an integer.y
- The second argument, an integer.
public static long max(long x, long y)
x
- The first argument, a long.y
- The second argument, a long.
public static float max(float x, float y)
x
- The first argument, a float.y
- The second argument, a float.
public static double max(double x, double y)
x
- The first argument, a double.y
- The second argument, a double.
public static int round(float x)
x
- The argument, a float.
public static long round(double x)
x
- The argument, a double.
public static double random()
public static double ceil(double x)
x
- The argument, a double.
public static double floor(double x)
x
- The argument, a double.
public static double rint(double x)
x
- The argument, a double.
public static double IEEEremainder(double x, double p)
x
- The dividend.p
- The divisor.
public static double sqrt(double x)
x
- The argument, a double.
public static double exp(double x)
x
- The argument, a double.
public static double log(double x)
x
- The argument, a double.
public static double sin(double x)
x
- The argument, a double, assumed to be in radians.
public static double cos(double x)
x
- The argument, a double, assumed to be in radians.
public static double tan(double x)
x
- The argument, a double, assumed to be in radians.
public static double asin(double x)
x
- The argument, a double.
public static double acos(double x)
x
- The argument, a double.
public static double atan(double x)
x
- The argument, a double.
public static double atan2(double y, double x)
x
- The first argument, a double.y
- The second argument, a double.
public static double pow(double x, double y)
x
- The base.y
- The exponent.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |