public class GroupJep extends JEP
Modifier and Type | Field and Description |
---|---|
protected GroupI |
group |
allowAssignment, allowUndeclared, errorList, ev, funTab, implicitMul, numberFactory, opSet, parser, symTab
Constructor and Description |
---|
GroupJep(GroupI group)
Create a new GroupJep instance with calculations over the given group.
|
GroupJep(JEP j) |
Modifier and Type | Method and Description |
---|---|
void |
addStandardConstants()
Adds the constants pi and e to the parser.
|
void |
addStandardFunctions()
Adds the standard functions to the parser.
|
static Complex |
complexValueOf(java.lang.Object num)
A utility function which returns the complex aproximation of a number.
|
Complex |
getComplexValue()
Calcuates the value of the expression and returns the
result as a complex number.
|
GroupI |
getGroup() |
addComplex, addConstant, addFunction, addVariable, addVariable, addVariable, evaluate, getAllowAssignment, getAllowUndeclared, getErrorInfo, getEvaluatorVisitor, getFunctionTable, getImplicitMul, getNumberFactory, getOperatorSet, getParser, getSymbolTable, getTopNode, getTraverse, getValue, getValueAsObject, getVar, getVarValue, hasError, initFunTab, initSymTab, parse, parseExpression, removeFunction, removeVariable, setAllowAssignment, setAllowUndeclared, setImplicitMul, setTraverse, setVarValue
protected GroupI group
public GroupJep(GroupI group)
group
- The group to calculate over.public GroupJep(JEP j)
public void addStandardFunctions()
JEP
addStandardFunctions
in class JEP
public void addStandardConstants()
JEP
addStandardConstants
in class JEP
public GroupI getGroup()
public Complex getComplexValue()
getComplexValue
in class JEP
public static Complex complexValueOf(java.lang.Object num)
num
- the object to be convertedHasComplexValueI
http://www.singularsys.com/jep Copyright © 2007 Singular Systems