public class FuncNode extends TermNode
parent
Modifier and Type | Method and Description |
---|---|
void |
add(Expression x)
Adds the expression as a child.
|
Expression |
child(int i)
Returns the child expression at the specified index.
|
double |
eval(VarMap v,
FuncMap f)
Evaluates each of the children, storing the result in an internal double array.
|
void |
insert(Expression x,
int i)
Adds the expression as a child at the specified index.
|
int |
numChildren()
Returns the number of child expressions.
|
void |
remove(Expression x)
Removes the specified expression as a child.
|
checkBeforeAccept, getFunctionNames, getParent, getVariableNames, isDescendent, toString
public FuncNode(String name, boolean negate)
public void add(Expression x)
public void insert(Expression x, int i)
public void remove(Expression x)
public int numChildren()
public Expression child(int i)
public double eval(VarMap v, FuncMap f)
eval
in class Expression
Copyright © 2024. All rights reserved.