public class Plus extends AbstractArgMultiple implements INumeric
Modifier and Type | Field and Description |
---|---|
static Plus |
CONST
Constructor for the singleton
|
Constructor and Description |
---|
Plus() |
Modifier and Type | Method and Description |
---|---|
IExpr |
e2ComArg(IComplex c0,
IComplex c1) |
IExpr |
e2DblArg(INum d0,
INum d1) |
IExpr |
e2DblComArg(IComplexNum d0,
IComplexNum d1) |
IExpr |
e2FraArg(IFraction f0,
IFraction f1) |
IExpr |
e2IntArg(IInteger i0,
IInteger i1) |
IExpr |
eComIntArg(IComplex c0,
IInteger i1) |
double |
evalReal(double[] stack,
int top,
int size)
Evaluate the function to a double number
|
IExpr |
evaluate(IAST ast,
EvalEngine engine)
|
HashedOrderlessMatcher |
getHashRuleMap() |
void |
setUp(ISymbol symbol)
Evaluate built-in rules and define Attributes for a function.
|
binaryOperator, defineHashRule, evaluateHashs, setUpHashRule, setUpHashRule, setUpHashRule2
e2ApcomplexArg, e2ApfloatArg, e2FunArg, e2ObjArg, e2SymArg, eComFraArg, eFunIntArg
createRuleFromMethod, getNormalizedNegativeExpression, getNormalizedNegativeExpression, getPeriodicParts, getPureImaginaryPart, getRuleAST, initSerializedRules, isNegativeExpression
numericEval
public static final Plus CONST
public IExpr e2ComArg(IComplex c0, IComplex c1)
e2ComArg
in class AbstractArg2
public IExpr e2DblArg(INum d0, INum d1)
e2DblArg
in class AbstractArg2
public IExpr e2DblComArg(IComplexNum d0, IComplexNum d1)
e2DblComArg
in class AbstractArg2
public IExpr e2FraArg(IFraction f0, IFraction f1)
e2FraArg
in class AbstractArg2
public IExpr e2IntArg(IInteger i0, IInteger i1)
e2IntArg
in class AbstractArgMultiple
public IExpr eComIntArg(IComplex c0, IInteger i1)
eComIntArg
in class AbstractArg2
public double evalReal(double[] stack, int top, int size)
INumeric
evalReal
in interface INumeric
DoubleStackEvaluator
public IExpr evaluate(IAST ast, EvalEngine engine)
evaluate
in interface IFunctionEvaluator
evaluate
in class AbstractArgMultiple
ast
- the abstract syntax tree (AST) of the form
Plus(...)
which should be evaluatedengine
- the users current evaluation enginenull
, if evaluation isn't
possibleValidate
,
IExpr.head()
,
IAST.arg1()
,
IAST.arg2()
,
IAST.arg3()
public HashedOrderlessMatcher getHashRuleMap()
getHashRuleMap
in class AbstractArgMultiple
public void setUp(ISymbol symbol)
AbstractFunctionEvaluator
setUp
in interface IEvaluator
setUp
in class AbstractFunctionEvaluator
symbol
- the symbol which should be set up