public class MathFunctions extends Object implements FunctionsPackage
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ABS |
protected static String |
ACOS |
protected static String |
ASIN |
protected static String |
ATAN |
protected static String |
CEIL |
protected static String |
COS |
protected static String |
FLOOR |
protected static String |
MOD |
protected static String |
PERCENTAGE |
protected static String |
PI |
protected static String |
POW |
protected static String |
ROUND |
protected static String |
SIN |
protected static String |
SQRT |
protected static String |
TAN |
| Constructor and Description |
|---|
MathFunctions(ProblemsHandler problemsHandler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEvaluate(FunctionExpression input,
List<Expression> parameters) |
Expression |
evaluate(FunctionExpression input,
List<Expression> parameters,
Expression evaluatedParameter) |
protected static final String PERCENTAGE
protected static final String ROUND
protected static final String FLOOR
protected static final String CEIL
protected static final String SQRT
protected static final String ABS
protected static final String TAN
protected static final String SIN
protected static final String COS
protected static final String MOD
protected static final String POW
protected static final String ATAN
protected static final String ASIN
protected static final String ACOS
protected static final String PI
public MathFunctions(ProblemsHandler problemsHandler)
public boolean canEvaluate(FunctionExpression input, List<Expression> parameters)
canEvaluate in interface FunctionsPackagepublic Expression evaluate(FunctionExpression input, List<Expression> parameters, Expression evaluatedParameter)
evaluate in interface FunctionsPackageCopyright © 2012-2013. All Rights Reserved.