public class NumericQ extends AbstractCoreFunctionEvaluator implements java.util.function.Predicate<IExpr>
True, if the given expression is a numeric function or value.| Constructor and Description |
|---|
NumericQ()
Constructor for the unary predicate
|
| Modifier and Type | Method and Description |
|---|---|
IExpr |
evaluate(IAST ast,
EvalEngine engine)
Returns
True if the first argument is a numeric object; False otherwise |
static INumber |
getNumberNumericQ(IExpr arg1)
Deprecated.
use
IExpr.evalNumber() instead |
static ISignedNumber |
getSignedNumberNumericQ(IExpr arg1)
Deprecated.
use
IExpr.evalSignedNumber() instead |
void |
setUp(ISymbol symbol)
Evaluate built-in rules and define Attributes for a function.
|
boolean |
test(IExpr arg) |
numericEvalpublic boolean test(IExpr arg)
test in interface java.util.function.Predicate<IExpr>public IExpr evaluate(IAST ast, EvalEngine engine)
True if the first argument is a numeric object; False otherwiseevaluate in interface IFunctionEvaluatorevaluate in class AbstractCoreFunctionEvaluatorast - the abstract syntax tree (AST) which should be evaluatedengine - the users current evaluation enginenull, if evaluation isn't possibleValidate,
IExpr.head(),
IAST.arg1(),
IAST.arg2(),
IAST.arg3()public void setUp(ISymbol symbol) throws SyntaxError
AbstractCoreFunctionEvaluatorsetUp in interface IEvaluatorsetUp in class AbstractCoreFunctionEvaluatorsymbol - the symbol which should be set upSyntaxError@Deprecated public static ISignedNumber getSignedNumberNumericQ(IExpr arg1)
IExpr.evalSignedNumber() insteadarg1.isNumericFunction() is true. Return a
ISignedNumber if the evaluation result is a ISignedNumber and null in all other casesarg1 - an expressionnull@Deprecated public static INumber getNumberNumericQ(IExpr arg1)
IExpr.evalNumber() insteadarg1.isNumericFunction() is true. Return a
INumber if the evaluation result is a INumber and null in all other casesarg1 - an expression