public class ComplexPowerRealEvaluator extends AbstractComplexEvaluator
Evaluator
evaluating a BinaryOperation
of type '^',
which first operand is a Complex
and second operand is a
Real
when evaluated.Modifier and Type | Field and Description |
---|---|
protected Evaluator |
operand1Eval
The
Evaluator for the first operand of the BinaryOperation . |
protected Evaluator |
operand2Eval
The
Evaluator for the second operand of the BinaryOperation . |
Constructor and Description |
---|
ComplexPowerRealEvaluator(Evaluator e1,
Evaluator e2)
Creates a new
ComplexPowerRealEvaluator with the specified
operand Evaluators . |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate()
Executes the power on the evaluation results of the given operand
Evaluators and returns the result as a Complex
Object . |
getComplexValue, getReturnType
protected Evaluator operand1Eval
Evaluator
for the first operand of the BinaryOperation
.protected Evaluator operand2Eval
Evaluator
for the second operand of the BinaryOperation
.public ComplexPowerRealEvaluator(Evaluator e1, Evaluator e2)
ComplexPowerRealEvaluator
with the specified
operand Evaluators
. Those operand
Evaluators
provide the values to be exponentiated.e1
- the Evaluator
providing the basis value.e2
- the Evaluator
providing the exponent value.public Object evaluate()
Evaluators
and returns the result as a Complex
Object
.Complex
Object
.AbstractComplexEvaluator.getReturnType()