I hope I'm writing this post in correct forum. I've got a equation -11*2*(-1)*3 which i transferred into RPN -> 11,2,*,1,-,*,3,*,-. And here I have problem with resolving it:
11*2 = 22
22-1= 21
22*what = ?
what should i multiply by in last equation (I've got nothing left on stack) ...?
There seems to be some confusion in the question about whether $−$ is a binary or unary operator. Certainly you shouldn't be doing any subtraction when computing this product...
I would translate this expression (it's not an equation, there's no equals sign) as $$−11,2,*,−1,*,3,*,$$ or if you require that we use only positive integers and interpret $−$ as a unary negation operator, $$11,−,2,*,1,−,*,3,*.$$