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

Variable Index

 o ABS
Unary operator.
 o ACOS
Unary operator.
 o ADD
Binary operator.
 o AND
Binary operator.
 o ASIN
Unary operator.
 o ATAN
Unary operator.
 o CEIL
Unary operator.
 o COS
Unary operator.
 o DIV
Binary operator.
 o EQU
Binary operator.
 o EXP
Unary operator.
 o FACT
Unary operator.
 o FLOOR
Unary operator.
 o GEQ
Binary operator.
 o GTH
Binary operator.
 o LEQ
Binary operator.
 o LOG
Unary operator.
 o LOG10
Unary operator.
 o LTH
Binary operator.
 o MOD
Binary operator.
 o MUL
Binary operator.
 o NEG
Unary minus operator.
 o NEQ
Binary operator.
 o ORR
Binary operator.
 o POW
Binary operator.
 o ROUND
Unary operator.
 o SIN
Unary operator.
 o SQRT
Unary operator.
 o SUB
Binary operator.
 o TAN
Unary operator.

Constructor Index

 o EDU.emporia.mathtools.Expr()

Method Index

 o make_app1(int, Expr)
 o make_app2(int, Expr, Expr)
 o make_literal(double)
 o make_var_ref(Variable)
 o value()

Variables

 o ABS
public static final int ABS
Unary operator.

 o ACOS
public static final int ACOS
Unary operator.

 o ADD
public static final int ADD
Binary operator.

 o AND
public static final int AND
Binary operator.

 o ASIN
public static final int ASIN
Unary operator.

 o ATAN
public static final int ATAN
Unary operator.

 o CEIL
public static final int CEIL
Unary operator.

 o COS
public static final int COS
Unary operator.

 o DIV
public static final int DIV
Binary operator.

 o EQU
public static final int EQU
Binary operator.

 o EXP
public static final int EXP
Unary operator.

 o FACT
public static final int FACT
Unary operator.

 o FLOOR
public static final int FLOOR
Unary operator.

 o GEQ
public static final int GEQ
Binary operator.

 o GTH
public static final int GTH
Binary operator.

 o LEQ
public static final int LEQ
Binary operator.

 o LOG
public static final int LOG
Unary operator.

 o LOG10
public static final int LOG10
Unary operator.

 o LTH
public static final int LTH
Binary operator.

 o MOD
public static final int MOD
Binary operator.

 o MUL
public static final int MUL
Binary operator.

 o NEG
public static final int NEG
Unary minus operator.

 o NEQ
public static final int NEQ
Binary operator.

 o ORR
public static final int ORR
Binary operator.

 o POW
public static final int POW
Binary operator.

 o ROUND
public static final int ROUND
Unary operator.

 o SIN
public static final int SIN
Unary operator.

 o SQRT
public static final int SQRT
Unary operator.

 o SUB
public static final int SUB
Binary operator.

 o TAN
public static final int TAN
Unary operator.

Constructors

 o Expr
public Expr()

Methods

 o make_app1
public static EDU.emporia.mathtools.Expr make_app1(int rator,
                                                   Expr rand)

Parameters:
rator - unary operator
rand - operand
 o 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
 o make_literal
public static EDU.emporia.mathtools.Expr make_literal(double v)
 o make_var_ref
public static EDU.emporia.mathtools.Expr make_var_ref(Variable var)
 o value
public abstract double value()
Returns:
the value given the current variable values

All Packages  Class Hierarchy  This Package  Previous  Next  Index