Construct the expression tree for the following expression:
E=(2a+5b)(x-7y)^4
I can construct it without the ^4 .
How it can be constructed for this type of operator?
my effort:
*
/ \
/ \
+ ^
/ \ / \
/ \ - 4
* * / \
/ \ / \ x *
2 a 5 b / \
7 y
Degree is just another binary operator so not a big difference there. Just keep in mind it usually has higher priority than other operations.