can rpn expressions represented such operators seem left operands seem right?


i've positive myself can't.



take example:



4 4 + 4 /



stack: 4
stack: 4 4
4 + 4 = 8
stack: 8
stack: 8 4
8 / 4 = 2
stack: 2



there twin ways above countenance the
same operators operands such operands first: "4
4 4 + /" "4 4 4 / +", conjunction weigh 2.



"4 4 4 + /"
stack: 4
stack: 4 4
stack: 4 4 4
4 + 4 = 8
stack: 4 8
4 / 8 = 0.5
stack: 0.5



"4 4 4 / +"
stack: 4
stack: 4 4
stack: 4 4 4
4 / 4 = 1
stack: 4 1
4 + 1 = 5
stack: 5



if have ability barter equipment smoke-stack following yes, it's possible, otherwise, no.



thoughts?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members