|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.lsmp.djep.sjep.AbstractPNode org.lsmp.djep.sjep.PFunction
public class PFunction
Represents a function.
Field Summary |
---|
Fields inherited from class org.lsmp.djep.sjep.AbstractPNode |
---|
pc |
Constructor Summary | |
---|---|
PFunction(PolynomialCreator pc,
java.lang.String name,
PostfixMathCommandI pfmc,
PNodeI[] args)
|
Method Summary | |
---|---|
int |
compareTo(PFunction fun)
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 PFunction(PolynomialCreator pc, java.lang.String name, PostfixMathCommandI pfmc, PNodeI[] args)
Method Detail |
---|
public boolean equals(PNodeI node)
PNodeI
equals
in interface PNodeI
equals
in class AbstractPNode
public int compareTo(PFunction fun)
public java.lang.String toString()
PNodeI
toString
in interface PNodeI
toString
in class java.lang.Object
public Node toNode() throws ParseException
PNodeI
ParseException
public PNodeI expand() throws ParseException
PNodeI
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |