Calculator Community > Other Calculators

Why RPN?

<< < (4/4)

c4ooo:
When in doubt add more parentheses to eliminate the ambiguity.

Streetwalrus:

--- Quote from: Eeems on February 03, 2016, 05:02:43 pm ---##6/2(1+2) =\ 6/2(3) =\ 6/6 =\ 1##MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById("bbclatex66391599a78dd")]);console.log("Queued!");
##\frac{6}{2(1+2)} =\ \frac{6}{2(3)} =\ \frac{6}{6} =\ 1##MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById("bbclatex66391599a78ed")]);console.log("Queued!");

This is due to how their division works. It's a fraction, not the ÷ symbol. So its 6 over 2(1+2) not six divided by 2(1+2). The way that TI-OS does it there is wrong according to that.

##6÷2(1+2) =\ 6÷2(3) =\ 3(3) =\ 9##MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById("bbclatex66391599a78f8")]);console.log("Queued!");

If we aren't treating it as a fraction then it is correc according to standard order of operations.

--- End quote ---
TI calculators interpret this just like any other interpreter or compiler would, it's CASIO that is wrong here. It's the only way that makes sense without natural expression display. The only difference is that the * operator is implicit.

This is how Python 3 does it:

--- Code: --->>> 6/2*(1+2)
9.0
--- End code ---


--- Quote from: c4ooo on February 26, 2018, 11:22:37 pm ---When in doubt add more parentheses to eliminate the ambiguity.

--- End quote ---

Navigation

[0] Message Index

[*] Previous page

Go to full version