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, wait
convertToPolyArray, equals, expand, negate, toCompactNode, toNode, toString
protected PolynomialCreator pc
public AbstractPNode(PolynomialCreator pc)
public PNodeI add(PNodeI node) throws ParseException
PNodeI
add
in interface PNodeI
ParseException
public PNodeI sub(PNodeI node) throws ParseException
PNodeI
sub
in interface PNodeI
ParseException
public PNodeI mul(PNodeI node) throws ParseException
PNodeI
mul
in interface PNodeI
ParseException
public PNodeI div(PNodeI node) throws ParseException
PNodeI
div
in interface PNodeI
ParseException
public PNodeI invert() throws ParseException
PNodeI
invert
in interface PNodeI
ParseException
public PNodeI pow(PNodeI node) throws ParseException
PNodeI
pow
in interface PNodeI
ParseException
public boolean equalsPNode(PNodeI node)
PNodeI
equalsPNode
in interface PNodeI
public boolean isZero()
PNodeI
public boolean isOne()
PNodeI
Copyright © 2018 Singular Systems http://www.singularsys.com/jep