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, sub
public PFunction(PolynomialCreator pc, java.lang.String name, PostfixMathCommandI pfmc, PNodeI[] args)
public boolean equalsPNode(PNodeI node)
PNodeI
equalsPNode
in interface PNodeI
equalsPNode
in class AbstractPNode
public int compareTo(PFunction fun)
public java.lang.String toString()
PNodeI
public Node toNode() throws ParseException
PNodeI
ParseException
public Node toCompactNode() throws ParseException
PNodeI
ParseException
public PNodeI expand() throws ParseException
PNodeI
ParseException
public 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
PNodeI
var
- variable namepolyArray
- results added to this mapParseException
public PNodeI negate() throws ParseException
PNodeI
ParseException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep