public interface PNodeI extends java.lang.Comparable<PNodeI>
| Modifier and Type | Method and Description |
|---|---|
PNodeI |
add(PNodeI node)
Adds a node to this one.
|
int |
compareTo(PNodeI fun)
Compares this expression to argument.
|
void |
convertToPolyArray(java.lang.String var,
java.util.Map<java.lang.Integer,PNodeI> polyArray)
Internal method for extracting coefficients
|
PNodeI |
div(PNodeI node)
Divides this by the argument.
|
boolean |
equals(java.lang.Object o)
True is nodes represent the same parse trees
|
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 |
invert()
inverts node i.e. 1/x
|
boolean |
isOne()
True if node represents one
|
boolean |
isZero()
True if node represents zero
|
PNodeI |
mul(PNodeI node)
Multiplies this by the argument.
|
PNodeI |
negate()
negates node i.e.
|
PNodeI |
pow(PNodeI node)
Raise this to the argument.
|
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.
|
PNodeI add(PNodeI node) throws ParseException
ParseExceptionPNodeI sub(PNodeI node) throws ParseException
ParseExceptionPNodeI negate() throws ParseException
ParseExceptionPNodeI mul(PNodeI node) throws ParseException
ParseExceptionPNodeI div(PNodeI node) throws ParseException
ParseExceptionPNodeI pow(PNodeI node) throws ParseException
ParseExceptionPNodeI invert() throws ParseException
ParseExceptionboolean equalsPNode(PNodeI node)
boolean equals(java.lang.Object o)
equals in class java.lang.Objectint compareTo(PNodeI fun)
compareTo in interface java.lang.Comparable<PNodeI>Node toNode() throws ParseException
ParseExceptionNode toCompactNode() throws ParseException
ParseExceptionjava.lang.String toString()
toString in class java.lang.Objectboolean isZero()
boolean isOne()
PNodeI expand() throws ParseException
ParseExceptionvoid convertToPolyArray(java.lang.String var,
java.util.Map<java.lang.Integer,PNodeI> polyArray)
throws ParseException
var - variable namepolyArray - results added to this mapParseExceptionCopyright © 2018 Singular Systems http://www.singularsys.com/jep