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, setUpHashRule2e2ApcomplexArg, e2ApfloatArg, e2FunArg, e2ObjArg, e2SymArg, eComFraArg, eFunIntArgcreateRuleFromMethod, getNormalizedNegativeExpression, getNormalizedNegativeExpression, getPeriodicParts, getPureImaginaryPart, getRuleAST, initSerializedRules, isNegativeExpressionnumericEvalpublic static final Plus CONST
public IExpr e2ComArg(IComplex c0, IComplex c1)
e2ComArg in class AbstractArg2public IExpr e2DblArg(INum d0, INum d1)
e2DblArg in class AbstractArg2public IExpr e2DblComArg(IComplexNum d0, IComplexNum d1)
e2DblComArg in class AbstractArg2public IExpr e2FraArg(IFraction f0, IFraction f1)
e2FraArg in class AbstractArg2public IExpr e2IntArg(IInteger i0, IInteger i1)
e2IntArg in class AbstractArgMultiplepublic IExpr eComIntArg(IComplex c0, IInteger i1)
eComIntArg in class AbstractArg2public double evalReal(double[] stack,
int top,
int size)
INumericevalReal in interface INumericDoubleStackEvaluatorpublic IExpr evaluate(IAST ast, EvalEngine engine)
evaluate in interface IFunctionEvaluatorevaluate in class AbstractArgMultipleast - 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 AbstractArgMultiplepublic void setUp(ISymbol symbol)
AbstractFunctionEvaluatorsetUp in interface IEvaluatorsetUp in class AbstractFunctionEvaluatorsymbol - the symbol which should be set up