public class GroupJep extends JEP
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, setVarValue
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(Object num)
num
- the object to be convertedHasComplexValueI
Jas4pp 1.5 © Java Analysis Studio for Particle Physics