public class POperator extends AbstractPNode
pc| Constructor and Description |
|---|
POperator(PolynomialCreator pc,
Operator op,
PNodeI[] args) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(POperator fun) |
void |
convertToPolyArray(java.lang.String var,
java.util.Map<java.lang.Integer,PNodeI> polyArray)
Internal method for extracting coefficients
|
boolean |
equalsPNode(PNodeI node)
True is nodes represent the same parse trees
|
PNodeI |
expand()
complete expansion. (1+x)^2 --> 1+2*x+x^2
|
PNodeI |
getArg(int i) |
java.lang.String |
getName() |
int |
getNArgs() |
Operator |
getOp() |
PostfixMathCommandI |
getPfmc() |
PNodeI |
negate()
negates node i.e.
|
Node |
toCompactNode()
Converts to a more efficient Jep representation.
|
Node |
toNode()
Converts the node to standard Jep format.
|
java.lang.String |
toString()
Produces a string representation of the argument.
|
add, compareTo, div, invert, isOne, isZero, mul, pow, subpublic POperator(PolynomialCreator pc, Operator op, PNodeI[] args)
public boolean equalsPNode(PNodeI node)
PNodeIequalsPNode in interface PNodeIequalsPNode in class AbstractPNodepublic int compareTo(POperator fun)
public java.lang.String toString()
PNodeIpublic Node toNode() throws ParseException
PNodeIParseExceptionpublic Node toCompactNode() throws ParseException
PNodeIParseExceptionpublic PNodeI expand() throws ParseException
PNodeIParseExceptionpublic java.lang.String getName()
public PostfixMathCommandI getPfmc()
public int getNArgs()
public PNodeI getArg(int i)
i - public Operator getOp()
public void convertToPolyArray(java.lang.String var,
java.util.Map<java.lang.Integer,PNodeI> polyArray)
throws ParseException
PNodeIvar - variable namepolyArray - results added to this mapParseExceptionpublic PNodeI negate() throws ParseException
PNodeIParseExceptionCopyright © 2018 Singular Systems http://www.singularsys.com/jep