On Sat, Mar 10, 2012 at 5:02 PM, cdb wrote: > =A0I saw this on an RISCOS enthusiast website. > > Using, head, as many different calculators that you have to hand > (especially if you have an iPhone or Windows calc) what result do you get > from the following sum. > > 6/2(1+2) > > Type it in exactly as above. > > My trusty Casio fx5000f =A0let me down, sort of. > Just for fun, I ran it through my own (javascript) implementation of the shunting yard algorithm. Mine doesn't support implicit multiplication so I had to use: 6/2*(1+2) http://en.wikipedia.org/wiki/Shunting_yard_algorithm My RPN output is: 6 2 / 1 2 + * The answer is 9, and will (should?) be with most infix -> RPN calculators (most are built this way). --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .