public class PFunction extends AbstractPNode
pc| Constructor and Description |
|---|
PFunction(PolynomialCreator pc,
java.lang.String name,
PostfixMathCommandI pfmc,
PNodeI[] args) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PFunction fun) |
void |
convertToPolyArray(java.lang.String var,
java.util.Map<java.lang.Integer,PNodeI> polyArray)
Internal method for extracting coefficients
|
boolean |
equalsPNode(PNodeI node)
True is nodes represent the same parse trees
|
PNodeI |
expand()
complete expansion. (1+x)^2 --> 1+2*x+x^2
|
PNodeI |
getArg(int i) |
java.lang.String |
getName() |
int |
getNArgs() |
PostfixMathCommandI |
getPfmc() |
PNodeI |
negate()
negates node i.e.
|
Node |
toCompactNode()
Converts to a more efficient Jep representation.
|
Node |
toNode()
Converts the node to standard Jep format.
|
java.lang.String |
toString()
Produces a string representation of the argument.
|
add, compareTo, div, invert, isOne, isZero, mul, pow, subpublic PFunction(PolynomialCreator pc, java.lang.String name, PostfixMathCommandI pfmc, PNodeI[] args)
public boolean equalsPNode(PNodeI node)
PNodeIequalsPNode in interface PNodeIequalsPNode in class AbstractPNodepublic int compareTo(PFunction fun)
public java.lang.String toString()
PNodeIpublic Node toNode() throws ParseException
PNodeIParseExceptionpublic Node toCompactNode() throws ParseException
PNodeIParseExceptionpublic PNodeI expand() throws ParseException
PNodeIParseExceptionpublic java.lang.String getName()
public PostfixMathCommandI getPfmc()
public int getNArgs()
public PNodeI getArg(int i)
i - public void convertToPolyArray(java.lang.String var,
java.util.Map<java.lang.Integer,PNodeI> polyArray)
throws ParseException
PNodeIvar - variable namepolyArray - results added to this mapParseExceptionpublic PNodeI negate() throws ParseException
PNodeIParseExceptionCopyright © 2018 Singular Systems http://www.singularsys.com/jep