public class Monomial extends AbstractPNode
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 |
equals(PNodeI node)
True is nodes represent the same parse trees
|
PNodeI |
expand()
complete expansion.
|
PNodeI |
invert()
inverts node i.e.
|
PNodeI |
mul(PNodeI node)
Multiplies this by the argument.
|
PNodeI |
negate()
negates node i.e.
|
PNodeI |
pow(PNodeI pow)
Raise this to the argument.
|
PNodeI |
sub(PNodeI node)
Subtracts the argument from this.
|
Node |
toNode()
Converts the node to standard JEP format.
|
String |
toString()
Produces a string representation of the argument.
|
isOne, isZeropublic PNodeI mul(PNodeI node) throws ParseException
PNodeImul in interface PNodeImul in class AbstractPNodeParseExceptionpublic PNodeI div(PNodeI node) throws ParseException
PNodeIdiv in interface PNodeIdiv in class AbstractPNodeParseExceptionpublic PNodeI pow(PNodeI pow) throws ParseException
PNodeIpow in interface PNodeIpow in class AbstractPNodeParseExceptionpublic PNodeI negate() throws ParseException
PNodeInegate in interface PNodeInegate in class AbstractPNodeParseExceptionpublic PNodeI invert() throws ParseException
PNodeIinvert in interface PNodeIinvert in class AbstractPNodeParseExceptionpublic 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 boolean equals(PNodeI node)
PNodeIequals in interface PNodeIequals in class AbstractPNodepublic int compareTo(PNodeI node)
PNodeIcompareTo in interface PNodeIcompareTo in class AbstractPNodepublic String toString()
PNodeIpublic Node toNode() throws ParseException
PNodeIParseExceptionpublic PNodeI expand() throws ParseException
PNodeIParseExceptionCopyright © 2018. All rights reserved.