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(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, setVarValueprotected GroupI group
public GroupJep(GroupI group)
group - The group to calculate over.public GroupJep(JEP j)
public void addStandardFunctions()
JEPaddStandardFunctions in class JEPpublic void addStandardConstants()
JEPaddStandardConstants in class JEPpublic GroupI getGroup()
public Complex getComplexValue()
getComplexValue in class JEPpublic static Complex complexValueOf(Object num)
num - the object to be convertedHasComplexValueICopyright © 2018. All rights reserved.