Class EDU.emporia.mathtools.Expr
All Packages Class Hierarchy This Package Previous Next Index
Class EDU.emporia.mathtools.Expr
Object
|
+----EDU.emporia.mathtools.Expr
- public abstract class Expr
- extends Object
A mathematical expression, built out of literal numbers, variables,
arithmetic operators, and elementary functions. The operator names
are from java.lang.Math.
- Version:
- 1.0
- Author:
- Darius Bacon, Chuck Pheatt
- Since:
- 7/7/99
-
ABS
- Unary operator.
-
ACOS
- Unary operator.
-
ADD
- Binary operator.
-
AND
- Binary operator.
-
ASIN
- Unary operator.
-
ATAN
- Unary operator.
-
CEIL
- Unary operator.
-
COS
- Unary operator.
-
DIV
- Binary operator.
-
EQU
- Binary operator.
-
EXP
- Unary operator.
-
FACT
- Unary operator.
-
FLOOR
- Unary operator.
-
GEQ
- Binary operator.
-
GTH
- Binary operator.
-
LEQ
- Binary operator.
-
LOG
- Unary operator.
-
LOG10
- Unary operator.
-
LTH
- Binary operator.
-
MOD
- Binary operator.
-
MUL
- Binary operator.
-
NEG
- Unary minus operator.
-
NEQ
- Binary operator.
-
ORR
- Binary operator.
-
POW
- Binary operator.
-
ROUND
- Unary operator.
-
SIN
- Unary operator.
-
SQRT
- Unary operator.
-
SUB
- Binary operator.
-
TAN
- Unary operator.
-
EDU.emporia.mathtools.Expr()
-
-
make_app1(int, Expr)
-
-
make_app2(int, Expr, Expr)
-
-
make_literal(double)
-
-
make_var_ref(Variable)
-
-
value()
-
ABS
public static final int ABS
- Unary operator.
ACOS
public static final int ACOS
- Unary operator.
ADD
public static final int ADD
- Binary operator.
AND
public static final int AND
- Binary operator.
ASIN
public static final int ASIN
- Unary operator.
ATAN
public static final int ATAN
- Unary operator.
CEIL
public static final int CEIL
- Unary operator.
COS
public static final int COS
- Unary operator.
DIV
public static final int DIV
- Binary operator.
EQU
public static final int EQU
- Binary operator.
EXP
public static final int EXP
- Unary operator.
FACT
public static final int FACT
- Unary operator.
FLOOR
public static final int FLOOR
- Unary operator.
GEQ
public static final int GEQ
- Binary operator.
GTH
public static final int GTH
- Binary operator.
LEQ
public static final int LEQ
- Binary operator.
LOG
public static final int LOG
- Unary operator.
LOG10
public static final int LOG10
- Unary operator.
LTH
public static final int LTH
- Binary operator.
MOD
public static final int MOD
- Binary operator.
MUL
public static final int MUL
- Binary operator.
NEG
public static final int NEG
- Unary minus operator.
NEQ
public static final int NEQ
- Binary operator.
ORR
public static final int ORR
- Binary operator.
POW
public static final int POW
- Binary operator.
ROUND
public static final int ROUND
- Unary operator.
SIN
public static final int SIN
- Unary operator.
SQRT
public static final int SQRT
- Unary operator.
SUB
public static final int SUB
- Binary operator.
TAN
public static final int TAN
- Unary operator.
Expr
public Expr()
make_app1
public static EDU.emporia.mathtools.Expr make_app1(int rator,
Expr rand)
-
- Parameters:
- rator - unary operator
- rand - operand
make_app2
public static EDU.emporia.mathtools.Expr make_app2(int rator,
Expr rand0,
Expr rand1)
-
- Parameters:
- rator - binary operator
- rand0 - left operand
- rand1 - right operand
make_literal
public static EDU.emporia.mathtools.Expr make_literal(double v)
make_var_ref
public static EDU.emporia.mathtools.Expr make_var_ref(Variable var)
value
public abstract double value()
- Returns:
- the value given the current variable values
All Packages Class Hierarchy This Package Previous Next Index