Define a class ComplexEquation
such that it overrides the method calculate()
and returns the result as 4a^3 + 7b^2 + 13
.
Note: 4a^3+7b^2+ 13 where a^3 is a power 3 and b^2 is b power 2.
Class Used, Input1, Input2 |
Output |
ComplexEquation, 2, 3 |
108 |
ComplexEquation, -3, 1 |
-88 |
Equation, -5, 4 |
38 |
Equation, 1, -2 |
2 |