|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lsmp.djep.sjep.AbstractPNode
org.lsmp.djep.sjep.PVariable
public class PVariable
Represents a variable.
| Field Summary |
|---|
| Fields inherited from class org.lsmp.djep.sjep.AbstractPNode |
|---|
pc |
| Constructor Summary | |
|---|---|
PVariable(PolynomialCreator pc,
XVariable var)
|
|
| Method Summary | |
|---|---|
int |
compareTo(PVariable vf)
this < arg ---> -1 this > arg ---> 1 |
boolean |
equals(PNodeI node)
True is nodes represent the same parse trees |
PNodeI |
expand()
complete expansion. (1+x)^2 --> 1+2*x+x^2 |
Node |
toNode()
Converts the node to standard JEP format. |
java.lang.String |
toString()
Produces a string representation of the argument. |
| Methods inherited from class org.lsmp.djep.sjep.AbstractPNode |
|---|
add, compareTo, div, invert, isOne, isZero, mul, negate, pow, sub |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.lsmp.djep.sjep.PNodeI |
|---|
equals |
| Constructor Detail |
|---|
public PVariable(PolynomialCreator pc,
XVariable var)
| Method Detail |
|---|
public boolean equals(PNodeI node)
PNodeI
equals in interface PNodeIequals in class AbstractPNodepublic int compareTo(PVariable vf)
public java.lang.String toString()
PNodeI
toString in interface PNodeItoString in class java.lang.Object
public Node toNode()
throws ParseException
PNodeI
ParseExceptionpublic PNodeI expand()
PNodeI
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||