public class Power extends AbstractArg2 implements INumeric, PowerRules
Modifier and Type | Field and Description |
---|---|
static Power |
CONST
Constructor for the singleton
|
RULES, SIZES
Constructor and Description |
---|
Power() |
Modifier and Type | Method and Description |
---|---|
IExpr |
e2ApcomplexArg(ApcomplexNum ac0,
ApcomplexNum ac1) |
IExpr |
e2ApfloatArg(ApfloatNum af0,
ApfloatNum af1) |
IExpr |
e2ComArg(IComplex c0,
IComplex c1) |
IExpr |
e2DblArg(INum d0,
INum d1) |
IExpr |
e2DblComArg(IComplexNum c0,
IComplexNum c1) |
IExpr |
e2FraArg(IFraction f0,
IFraction f1) |
IExpr |
e2IntArg(IInteger i0,
IInteger i1) |
IExpr |
e2ObjArg(IExpr arg1,
IExpr arg2)
Evaluate the function for the 2 given expressions.
|
IExpr |
eComFraArg(IComplex c0,
IFraction i1) |
IExpr |
eComIntArg(IComplex c0,
IInteger i1) |
double |
evalReal(double[] stack,
int top,
int size)
Evaluate the function to a double number
|
IAST |
getRuleAST()
Get the predefined rules for this function symbol.
|
void |
setUp(ISymbol symbol)
Evaluate built-in rules and define Attributes for a function.
|
binaryOperator, e2FunArg, e2SymArg, eFunIntArg, evaluate
createRuleFromMethod, getNormalizedNegativeExpression, getNormalizedNegativeExpression, getPeriodicParts, getPureImaginaryPart, initSerializedRules, isNegativeExpression
numericEval
public static final Power CONST
public IAST getRuleAST()
AbstractFunctionEvaluator
getRuleAST
in class AbstractFunctionEvaluator
null
if no rules are definedpublic IExpr e2ApcomplexArg(ApcomplexNum ac0, ApcomplexNum ac1)
e2ApcomplexArg
in class AbstractArg2
public IExpr e2DblComArg(IComplexNum c0, IComplexNum c1)
e2DblComArg
in class AbstractArg2
public IExpr e2ComArg(IComplex c0, IComplex c1)
e2ComArg
in class AbstractArg2
public IExpr e2ApfloatArg(ApfloatNum af0, ApfloatNum af1)
e2ApfloatArg
in class AbstractArg2
public IExpr e2DblArg(INum d0, INum d1)
e2DblArg
in class AbstractArg2
public IExpr e2IntArg(IInteger i0, IInteger i1)
e2IntArg
in class AbstractArg2
public IExpr e2ObjArg(IExpr arg1, IExpr arg2)
AbstractArg2
e2ObjArg
in class AbstractArg2
F#NIL
if no evaluation is possible.public IExpr e2FraArg(IFraction f0, IFraction f1)
e2FraArg
in class AbstractArg2
public IExpr eComIntArg(IComplex c0, IInteger i1)
eComIntArg
in class AbstractArg2
public IExpr eComFraArg(IComplex c0, IFraction i1)
eComFraArg
in class AbstractArg2
public void setUp(ISymbol symbol)
setUp
in interface IEvaluator
setUp
in class AbstractFunctionEvaluator
symbol
- the symbol which should be set uppublic double evalReal(double[] stack, int top, int size)
INumeric
evalReal
in interface INumeric
DoubleStackEvaluator