Polish Notation Expression (need little help) **/^a-bc+d*ef**

86 Views Asked by At
/^a-bc+d*ef

I am little bit confused about this expression

*ef=(e*f)

+d*ef=d+(e*f)

-BC=(b-c)

/^a? if it is ^23= 2^3

here I am confused, what should I do? please need help.


/^a-bc+d*ef

/^a-bc+d(e*f)

Here now what should i do? should /^a-bc+d+(e*f) is this okay?

(b-c) then what sign should be between /^a(b-c) and d+(e*f)?

and /^a I know if ^23=2^3=8

but here I am totally fed up. Please guide me where i am wrong.

1

There are 1 best solutions below

1
Jan David On

It seems to me that your expression is not correct:

/^a-bc+d*ef

<=>

/^a-bc+d(e*f)

<=>

/^a-bc (d+(e*f))

At this point you've got three values in a row and no operator. All operators should be binary for Polish notation to work.