public class Trapezium extends SumType
curNumberOfParameters, numberOfParameters| Modifier and Type | Method and Description |
|---|---|
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.
|
Object |
evaluate(Object[] elements)
Evaluates the function given the set of y values.
|
checkNumberOfParameters, evaluate, runcheckStack, getNumberOfParameters, setCurNumberOfParameterspublic Trapezium()
public Trapezium(String name)
public Object evaluate(Object[] elements) throws ParseException
SumTypeevaluate in class SumTypeelements - the y valuesParseExceptionpublic 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 SumTypeParseExceptionCopyright © 2018. All rights reserved.