public class PVariable extends AbstractPNode
pc| Constructor and Description |
|---|
PVariable(PolynomialCreator pc,
Variable var) |
| Modifier and Type | Method and Description |
|---|---|
PNodeI |
add(PNodeI node)
Adds a node to this one.
|
int |
compareTo(PVariable vf)
this < arg ---> -1
this > arg ---> 1
|
void |
convertToPolyArray(java.lang.String var,
java.util.Map<java.lang.Integer,PNodeI> polyArray)
Internal method for extracting coefficients
|
boolean |
equalsIgnoreConstant(PNodeI node) |
boolean |
equalsPNode(PNodeI node)
True is nodes represent the same parse trees
|
PNodeI |
expand()
complete expansion. (1+x)^2 --> 1+2*x+x^2
|
java.lang.String |
getName() |
Variable |
getVariable() |
PNodeI |
negate()
negates node i.e.
|
PNodeI |
sub(PNodeI node)
Subtracts the argument from this.
|
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.
|
compareTo, div, invert, isOne, isZero, mul, powpublic PVariable(PolynomialCreator pc, Variable var)
public boolean equalsPNode(PNodeI node)
PNodeIequalsPNode in interface PNodeIequalsPNode in class AbstractPNodepublic PNodeI add(PNodeI node) throws ParseException
PNodeIadd in interface PNodeIadd in class AbstractPNodeParseExceptionpublic PNodeI sub(PNodeI node) throws ParseException
PNodeIsub in interface PNodeIsub in class AbstractPNodeParseExceptionpublic int compareTo(PVariable vf)
public java.lang.String toString()
PNodeIpublic Node toNode() throws ParseException
PNodeIParseExceptionpublic Node toCompactNode() throws ParseException
PNodeIParseExceptionpublic PNodeI expand()
PNodeIpublic Variable getVariable()
public java.lang.String getName()
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
PNodeIParseExceptionpublic boolean equalsIgnoreConstant(PNodeI node)
Copyright © 2018 Singular Systems http://www.singularsys.com/jep