public class Power extends BinaryOperation
simplify()
and differentiate(Symbol)
depending
on this certain Expression.operand1, operand2
Constructor and Description |
---|
Power()
Creates a new Power object with no operands.
|
Power(Expression op1,
Expression op2)
Creates a new Power object with the specified operands.
|
Modifier and Type | Method and Description |
---|---|
Expression |
differentiate(Symbol s)
Returns the derivative of this Power with respect to s.
|
Expression |
simplify()
Returns a simplified Expression of this Power.
|
dissolveFunctionCalls, equals, getEssentialVariables, getEvaluator, getOperand1, getOperand2, getPriority, getType, isComplete, isConstant, replaceSymbol, setOperands, toString
differentiate, getEssentialVariables
public Power()
BinaryOperation.BinaryOperation(int, int)
.public Power(Expression op1, Expression op2)
BinaryOperation.BinaryOperation(int, int, Expression, Expression)
.op1
- op2
- public Expression differentiate(Symbol s)
If g is a constant Symbol
, the following way is used:
(f^g)'=g*(f^(g-1)) * f'
differentiate
in class Expression
Symbol.isConstant()
public Expression simplify()
simplify
in class Expression