public class Trapezium extends SumType
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
Trapezium() |
Trapezium(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(Node node,
Variable var,
double min,
double max,
double inc,
EvaluatorI pv)
Evaluates the node by repeatibly setting the value of the variable from min to max, and calculating the value of the first argument.
|
java.lang.Object |
evaluate(java.lang.Object[] elements)
Evaluates the function given the set of y values.
|
checkNumberOfParameters, evaluate, runcheckStack, getNumberOfParameters, setCurNumberOfParameterspublic java.lang.Object evaluate(java.lang.Object[] elements)
throws ParseException
SumTypeevaluate in class SumTypeelements - the y valuesParseExceptionpublic java.lang.Object evaluate(Node node, Variable var, double min, double max, double inc, EvaluatorI pv) throws ParseException
SumTypeSumType.evaluate(Object[])
is more useful. If they do they should follow the pattern used here.evaluate in class SumTypeParseExceptionhttp://www.singularsys.com/jep Copyright © 2007 Singular Systems