|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mot.iden.math.Math
THIS API IS A LICENSEE CLOSED CLASS AND IS THEREFORE RESERVED FOR USE BY MOTOROLA SND IT'S LICENSEES
The class Math
contains methods for performing basic
numeric operations such as the elementary exponential, logarithm,
and trigonometric functions.
Float
Field Summary | |
static java.lang.String |
E
The String value that is closer than any other to
e, the base of the natural logarithms. |
static java.lang.String |
PI
The String value that is closer than any other to
pi, the ratio of the circumference of a circle to its
diameter. |
Method Summary | |
static Float |
abs(Float x)
Returns the absolute value of an Float value.
|
static Float |
acos(Float x)
Returns the arc cosine of an angle, in the range of 0.0 through pi. |
static Float |
add(Float x,
Float y)
Returns the floating-point addition of the two specified Float arguments as a new Float object. |
static Float |
asin(Float x)
Returns the arc sine of an angle, in the range of -pi/2 through pi/2. |
static Float |
atan(Float x)
Returns the arc tangent of an angle, in the range of -pi/2 through pi/2. |
static Float |
atan2(Float y,
Float x)
Converts rectangular coordinates ( x , y )
to polar (r, theta).
|
static Float |
ceil(Float x)
Returns the smallest integer (represented as a Float) not less than x. |
static Float |
cos(Float x)
Returns the trigonometric cosine of an angle. |
static Float |
divide(Float x,
Float y)
Returns the floating-point division of the two specified Float arguments as a new Float object. |
static Float |
exp(Float x)
Returns Euler's number e raised to the power of a Float value. |
static Float |
floor(Float x)
Returns the largest integer (represented as a double-precision number) not greater than x. |
static Float |
IEEEremainder(Float x,
Float y)
Computes the remainder operation on two arguments as prescribed by the IEEE 754 standard. |
static Float |
log(Float x)
Returns the natural logarithm (base e) of a double
value. |
static Float |
max(Float x,
Float y)
Returns the greater of two Float values. |
static Float |
min(Float x,
Float y)
Returns the smaller of two Float values. |
static Float |
multiply(Float x,
Float y)
Returns the floating-point multiplication of the two specified Float arguments as a new Float object. |
static Float |
pow(Float x,
int y)
Returns the floating-point of the specified Float argument to the power of a positive integer exponent as a new Float object. |
static Float |
round(Float x)
Returns the Float value,which mathematically equals to the closest integer to the argument. |
static Float |
sin(Float x)
Returns the trigonometric sine of an angle. |
static Float |
sqrt(Float x)
Returns the correctly rounded positive square root of a double value.
|
static Float |
subtract(Float x,
Float y)
Returns the floating-point subtraction of the two specified Float arguments as a new Float object. |
static Float |
tan(Float x)
Returns the trigonometric tangent of an angle. |
static Float |
toDegrees(Float angrad)
Converts an angle measured in radians to an approximately equivalent angle measured in degrees. |
static Float |
toRadians(Float angdeg)
Converts an angle measured in degrees to an approximately equivalent angle measured in radians. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String E
String
value that is closer than any other to
e, the base of the natural logarithms.
public static final java.lang.String PI
String
value that is closer than any other to
pi, the ratio of the circumference of a circle to its
diameter.
Method Detail |
public static final Float round(Float x)
x
- a floating-point value to be rounded to a
Float
.
java.lang.IllegalArgumentException
- if operand is nullpublic static final Float pow(Float x, int y)
java.lang.ArithmeticException
- if the exponent
represents a negative number.
java.lang.IllegalArgumentException
- if operand is nullpublic static final Float sqrt(Float x)
double
value.
Special cases:
x
- a value.
java.lang.IllegalArgumentException
- if operand is null.
java.lang.ArithmeticException
- if the argument x represents a negative number.public static final Float add(Float x, Float y)
x
- A Float
containing a floating-point number.y
- A Float
containing a floating-point number.
java.lang.IllegalArgumentException
- if any operand is nullpublic static final Float subtract(Float x, Float y)
x
- A Float
containing a floating-point number.y
- A Float
containing a floating-point number.
java.lang.IllegalArgumentException
- if any operand is nullpublic static final Float multiply(Float x, Float y)
x
- A Float
containing a floating-point number.y
- A Float
containing a floating-point number.
java.lang.IllegalArgumentException
- if any operand is nullpublic static final Float divide(Float x, Float y) throws java.lang.ArithmeticException
x
- A Float
containing a floating-point number.y
- A Float
containing a floating-point number.
java.lang.IllegalArgumentException
- if any operand is null
java.lang.ArithmeticException
public static final Float sin(Float x)
Special cases:
x
- an angle, in radians.
java.lang.IllegalArgumentException
- if any operand is nullpublic static final Float cos(Float x)
Special cases:
x
- an angle, in radians.
public static final Float tan(Float x)
Special cases:
x
- an angle, in radians.
java.lang.IllegalArgumentException
- if any operand is nullpublic static final Float asin(Float x)
Special cases:
x
- the value whose arc sine is to be returned.
java.lang.IllegalArgumentException
- if any operand is null or magnitude of x is greater than one.public static final Float acos(Float x)
Spcial cases:
x
- the value whose arc cosine is to be returned.
java.lang.IllegalArgumentException
- if any operand is null or magnitude of x is greater than one.public static final Float atan(Float x)
Special cases:
java.lang.IllegalArgumentException
- if any operand is null.public static final Float toRadians(Float angdeg)
angdeg
- an angle, in degrees
angdeg
in radians.
java.lang.IllegalArgumentException
- if any operand is null.public static final Float toDegrees(Float angrad)
angrad
- an angle, in radians
angrad
in degrees.
java.lang.IllegalArgumentException
- if any operand is null.public static final Float exp(Float x)
Float
value. Special cases:
x
- the exponent to raise e to.
a
,
where e is the base of the natural logarithms.
java.lang.IllegalArgumentException
- if any operand is null.public static final Float log(Float x)
double
value. Special cases: Special cases:
x
- a number greater than 0.0
.
a
, the natural logarithm of
a
.
java.lang.IllegalArgumentException
- if any operand is null or
x less than zero.public static final Float IEEEremainder(Float x, Float y)
Special cases:
x
- the dividend.y
- the divisor.
x
is divided by
y
.
java.lang.IllegalArgumentException
- if any operand is null.public static final Float ceil(Float x)
Special cases:
x
- a value.
java.lang.IllegalArgumentException
- if any operand is null.public static final Float floor(Float x)
Special cases:
x
- a value.
java.lang.IllegalArgumentException
- if any operand is null.public static final Float atan2(Float y, Float x)
x
, y
)
to polar (r, theta).
This method computes the phase theta by computing an arc tangent
of y/x
in the range of -pi to pi.
Special cases:
y
- the ordinate coordinatex
- the abscissa coordinate
java.lang.IllegalArgumentException
- if any operand is null.public static final Float abs(Float x)
Float
value.
If the argument is not negative, the argument is returned.
If the argument is negative, the negation of the argument is returned.
x
- the argument whose absolute value is to be determined
java.lang.IllegalArgumentException
- if any operand is null.public static final Float max(Float x, Float y)
Float
values. That is,
the result is the argument closer to positive infinity. If the
arguments have the same value, the result is that same
value. If either value is NaN, then the result is NaN. Unlike
the the numerical comparison operators, this method considers
negative zero to be strictly smaller than positive zero. If one
argument is positive zero and the other negative zero, the
result is positive zero.
x
- an argument.y
- another argument.
a
and b
.
java.lang.IllegalArgumentException
- if any operand is null.public static final Float min(Float x, Float y)
Float
values. That is,
the result is the value closer to negative infinity. If the
arguments have the same value, the result is that same
value. If either value is NaN, then the result is NaN. Unlike
the the numerical comparison operators, this method considers
negative zero to be strictly smaller than positive zero. If
one argument is positive zero and the other is negative zero,
the result is negative zero.
x
- an argument.y
- another argument.
a
and b.
java.lang.IllegalArgumentException
- if any operand is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |