|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjmathlib.core.interpreter.RootObject
jmathlib.core.tokens.Token
jmathlib.core.tokens.OperandToken
public abstract class OperandToken
The base class of all operands used in an expression
| Field Summary |
|---|
| Fields inherited from class jmathlib.core.tokens.Token |
|---|
priority |
| Fields inherited from interface jmathlib.core.constants.TokenConstants |
|---|
ADDSUB_PRIORITY, AND_PRIORITY, ANDAND_PRIORITY, ASSIGN_PRIORITY, BRACKET_PRIORITY, COMPARE_PRIORITY, CONCAT, MATRIX, MULDIV_PRIORITY, OR_PRIORITY, OROR_PRIORITY, PARAMETER, POWER_PRIORITY, RELATION_PRIORITY, SINGLE, ttDelimiter, ttNotSet, ttOperand, ttOperator |
| Fields inherited from interface jmathlib.core.constants.ErrorCodes |
|---|
ERR_BRACKET_OPEN, ERR_BRACKET_ORDER, ERR_FUNCTION_NOT_FOUND, ERR_FUNCTION_NOT_IMPLEMENTED, ERR_INSUFFICIENT_PARAMETERS, ERR_INVALID_PARAMETER, ERR_LVALUE_REQUIRED, ERR_MATRIX_SINGULAR, ERR_NOT_SQUARE_MATRIX, ERR_OPNOTSUPPORTED, ERR_TOO_MANY_PARAMETERS, ERR_USER_ERROR, ERR_VARIABLE_NOTDEFINED, OK, OK_FUNCTION_PROCESS |
| Constructor Summary | |
|---|---|
OperandToken()
Default Constructor |
|
OperandToken(int _priority)
Constructor |
|
| Method Summary | |
|---|---|
OperandToken |
add(OperandToken arg)
add this token to another |
java.util.ArrayList |
asArray()
|
java.util.Enumeration |
Children()
function to access all children of a node within the expression tree |
OperandToken |
ctranspose()
calculate the conjugate transpose |
OperandToken |
derivative(java.lang.String deriveBy)
Symbolic function - calculates the the derivative of the token |
OperandToken |
divide(OperandToken arg)
divide this token by another |
OperandToken |
expand()
Symbolic function - expands the token |
OperandToken |
factorial()
calculate the factorial |
OperandToken |
integral(java.lang.String integrateBy)
Symbolic function - calculates the the integral of the token |
boolean |
isLeaf()
checks if this is a leaf node of the expression tree |
boolean |
isNull()
|
boolean |
isNumeric()
Checks if this operand is a numeric value |
OperandToken |
leftDivide(OperandToken arg)
|
OperandToken |
mpower(OperandToken arg)
raise this token to the power of another |
OperandToken |
mPower(OperandToken arg)
raise this token to the matrix power of another |
OperandToken |
multiply(OperandToken arg)
multiply this token by another |
OperandToken |
negate()
calculate the transpose |
OperandToken |
power(OperandToken arg)
raise this token to the power of another |
OperandToken |
scalarDivide(OperandToken arg)
divide this token by another |
OperandToken |
scalarLeftDivide(OperandToken arg)
|
OperandToken |
scalarMultiply(OperandToken arg)
scalar multiply this token by another |
OperandToken |
simplify()
Symbolic function - simplifies the token |
OperandToken |
subst(OperandToken old,
OperandToken substBy)
Symbolic expression - replaces a symbol with an expression |
OperandToken |
subtract(OperandToken arg)
subtract this token from another |
OperandToken |
transpose()
calculate the transpose |
| Methods inherited from class jmathlib.core.tokens.Token |
|---|
evaluate, isDisplayResult, setDisplayResult, toMathMlString, toString, toString |
| Methods inherited from class jmathlib.core.interpreter.RootObject |
|---|
clone, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OperandToken()
public OperandToken(int _priority)
_priority, - priority of token_typeName - - a string representing the type, used for casting| Method Detail |
|---|
public OperandToken multiply(OperandToken arg)
arg - = the amount to multiply it by
public OperandToken scalarMultiply(OperandToken arg)
arg - = the amount to multiply it by
public OperandToken add(OperandToken arg)
arg - = the amount to add to it
public OperandToken subtract(OperandToken arg)
arg - = the amount to subtract from it
public OperandToken divide(OperandToken arg)
arg - = the amount to divide it by
public OperandToken scalarDivide(OperandToken arg)
arg - = the amount to divide it by
public OperandToken leftDivide(OperandToken arg)
public OperandToken scalarLeftDivide(OperandToken arg)
public OperandToken power(OperandToken arg)
arg - = the amount to raise it by
public OperandToken mPower(OperandToken arg)
arg - = the amount to raise it by
public OperandToken mpower(OperandToken arg)
arg - = the amount to multiply it by
public OperandToken factorial()
public OperandToken transpose()
public OperandToken ctranspose()
public OperandToken negate()
public OperandToken simplify()
public OperandToken expand()
public OperandToken derivative(java.lang.String deriveBy)
deriveBy - = the symbol to derive bypublic OperandToken integral(java.lang.String integrateBy)
deriveBy - = the symbol to integrate by
public OperandToken subst(OperandToken old,
OperandToken substBy)
old - = the symbol to replacesubstBy - = the expression to replace it withpublic boolean isNumeric()
public boolean isNull()
public boolean isLeaf()
public java.util.Enumeration Children()
public java.util.ArrayList asArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||