2
$\begingroup$

Very dumb question:

What is the order of operations in the following:

PEMDAS a/b+c = a : b + c (where ":" is the division symbol)

7/1+6 or 7:1+6

in the example below is it 1 or 13?

  • 3
    If you are entering things into a computer program, you need to know the order of precedence that it uses. If you are communicating with a human, if in doubt use parentheses.2012-06-29

2 Answers 2

1

It is better written as $\dfrac{a}{b}+c$ or $(a/b)+c$ to avoid such possible ambiguity, assuming that is what it means (else, $a/(b+c)$ or $\dfrac{a}{b+c}$). I think we can all agree that, for example, $ab+c$ is shorthand for $(ab)+c$ rather than $a(b+c)$, but division with / (or ÷) can add human parsing problems if parentheses are not used. See also Gerry Myerson's answer to a related question.

  • 0
    Thank you for your reference. As I suspected it is ambiguous. The issue was it's representation: a --- b+c2012-06-29
0

First use PEMDAS and if two operations of same precedence occurs then Standard order convention is to evaluate from left to right.Here, division precedes over addition and hence answer is 13.

  • 0
    that was my interpretation ... thank you.2012-06-29