/***********************************************************
* Expncodes.java
* Why, you ask, are these numbers so darn large?
* So indices into constants or into the expression table
* never run into them. The computer doesn't care whether
* they're on the order of 1, 1000, 1000000, or 1000000000.
* The limit is about two billion. Four if unsigned ints
* were used.
***********************************************************/
interface MathExpressionCodes
{
int
LPRN = 10001, // left paren
RPRN = 10002, // right paren
ADDN = 10003, // +
SUBN = 10004, // -
MULT = 10005, // *
DIVN = 10006, // %
EULE = 10007, // index into (primitive) functions, probably one Euler
// played with
NEGT = 10008, // unary minus. entered by user as ~.
POWR = 10009, // exponentiation
MEXP = 10010, // an index into the array of mathematical expression pointers
// follows
// an index into constants (NOT symbolic, just constants) follows
CONS = 10011;
int //these are the codes that follow EULE
SINT=10030, // sin, trigonometric
COST=10031,
TANT=10032,
EXPE=10033, // I know it's a lot like MEXP. This is exp(x)
LOGE=10034; // natural log: ln(x)
int //misc constant
DEFAULT_ARRAY_SIZE = 20;
}
/***********************************************************
* END Expncodes.java
***********************************************************/