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, setVarValuepublic 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 convertedHasComplexValueIJas4pp 1.5 © Java Analysis Studio for Particle Physics