public abstract class AbstractPNode extends java.lang.Object implements PNodeI
| Modifier and Type | Field and Description |
|---|---|
protected PolynomialCreator |
pc
A reference to the PolynomialCreator instance.
|
| Constructor and Description |
|---|
AbstractPNode(PolynomialCreator pc) |
| Modifier and Type | Method and Description |
|---|---|
PNodeI |
add(PNodeI node)
Adds a node to this one.
|
int |
compareTo(PNodeI node)
Compares this expression to argument.
|
PNodeI |
div(PNodeI node)
Divides this by the argument.
|
boolean |
equalsPNode(PNodeI node)
True is nodes represent the same parse trees
|
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 |
pow(PNodeI node)
Raise this to the argument.
|
PNodeI |
sub(PNodeI node)
Subtracts the argument from this.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertToPolyArray, equals, expand, negate, toCompactNode, toNode, toStringprotected PolynomialCreator pc
public AbstractPNode(PolynomialCreator pc)
public PNodeI add(PNodeI node) throws ParseException
PNodeIadd in interface PNodeIParseExceptionpublic PNodeI sub(PNodeI node) throws ParseException
PNodeIsub in interface PNodeIParseExceptionpublic PNodeI mul(PNodeI node) throws ParseException
PNodeImul in interface PNodeIParseExceptionpublic PNodeI div(PNodeI node) throws ParseException
PNodeIdiv in interface PNodeIParseExceptionpublic PNodeI invert() throws ParseException
PNodeIinvert in interface PNodeIParseExceptionpublic PNodeI pow(PNodeI node) throws ParseException
PNodeIpow in interface PNodeIParseExceptionpublic boolean equalsPNode(PNodeI node)
PNodeIequalsPNode in interface PNodeIpublic boolean isZero()
PNodeIpublic boolean isOne()
PNodeICopyright © 2018 Singular Systems http://www.singularsys.com/jep