|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Eval.Function>
pmp.macro.math.Eval.Function
protected static enum Eval.Function
This enumerated type handles function calling. Most of functions are
wrappers for functions defined in Math
class.
Enum Constant Summary | |
---|---|
ABS
Returns absolute value of given nuber. |
|
ACOS
Returns the arc cosine of an angle, in the range of 0.0 through pi. |
|
ADD
Sums arbitrary number of numbers. |
|
ASIN
Returns the arc sine of an angle, in the range of -pi/2 through pi/2. |
|
ATAN
Returns the arc tangent of an angle, in the range of -pi/2 through pi/2. |
|
CBRT
Returns the cube root of a given value. |
|
CEIL
Returns the smallest (closest to negative infinity) integer that is greater than or equal to the argument. |
|
CMP
Compares given numbers. |
|
COS
Returns the trigonometric cosine of an angle. |
|
COSH
Returns Euler's number e raised to the power of a given value. |
|
DIV
Performs integer division. |
|
EXP
Returns Euler's number e raised to the power of a given value. |
|
FLOOR
Returns the largest (closest to positive infinity) integer that is less than or equal to the argument. |
|
GT
Compares given numbers. |
|
GTE
Compares given numbers. |
|
HYPOT
Returns sqrt(x2+y2). |
|
LN
Returns the natural logarithm (base e) of a given value. |
|
LOG10
Returns the base 10 logarithm of a ven value. |
|
LT
Compares given numbers. |
|
LTE
Compares given numbers. |
|
MAX
Returns maximum of the given values. |
|
MIN
Returns minimum of the given values. |
|
MOD
Computes division modulo. |
|
MUL
Multiplies arbitrary number of numbers. |
|
NEG
Returns negation of given number. |
|
POWER
Returns the value of the first argument raised to the power of the second argument. |
|
RANDOM
If value is given then integer greater than or equal to 0 and less than given value is returned. |
|
ROUND
Returns the closest integer to the argument. |
|
SIGNUM
Returns the signum function of the argument; zero if the argument is zero, 1.0 if the argument is greater than zero, -1.0 if the argument is less than zero. |
|
SIN
Returns the trigonometric sine of an angle. |
|
SQRT
Returns square root of a given value. |
|
SUB
Subtracts two numbers. |
|
TAN
Returns the trigonometric tangent of an angle. |
|
TANH
Returns the hyperbolic tangent of an angle. |
Method Summary | |
---|---|
static Eval.Function |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Eval.Function[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Eval.Function ADD
public static final Eval.Function SUB
public static final Eval.Function MUL
public static final Eval.Function DIV
public static final Eval.Function POWER
public static final Eval.Function NEG
public static final Eval.Function MOD
public static final Eval.Function SIN
public static final Eval.Function COS
public static final Eval.Function ASIN
public static final Eval.Function ACOS
public static final Eval.Function TAN
public static final Eval.Function TANH
public static final Eval.Function ATAN
public static final Eval.Function EXP
public static final Eval.Function LN
public static final Eval.Function LOG10
public static final Eval.Function HYPOT
public static final Eval.Function ABS
public static final Eval.Function SQRT
public static final Eval.Function CBRT
public static final Eval.Function COSH
public static final Eval.Function MAX
public static final Eval.Function MIN
public static final Eval.Function RANDOM
public static final Eval.Function SIGNUM
public static final Eval.Function ROUND
public static final Eval.Function CEIL
public static final Eval.Function FLOOR
public static final Eval.Function CMP
public static final Eval.Function GT
public static final Eval.Function LT
public static final Eval.Function GTE
public static final Eval.Function LTE
Method Detail |
---|
public static final Eval.Function[] values()
for(Eval.Function c : Eval.Function.values()) System.out.println(c);
public static Eval.Function valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |