Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Renkluaf

Based on programming rules it’d be 16 from operator precedence.

However, when writing equations in textbooks I notice there is minimization of divisor signs for clarity.

E.g. if I want to say that a times b, is divided by c times d I would write

ab / cd

not

a / c * b / d

Which is the same in terms of operator precedence.

Of course if you’re teaching fractions in grade school you’d use the second as an example.


47 posted on 08/01/2019 5:32:53 AM PDT by fruser1
[ Post Reply | Private Reply | To 1 | View Replies ]


To: fruser1

“E.g. if I want to say that a times b, is divided by c times d I would write

ab / cd”

To start with your sentence is ambiguous. You realize that now, don’t you?

The “ab/cd” means a * b / c * d which is evaluated left to right:

multiply a by b
divide that result by c
multiply that result by d


84 posted on 08/01/2019 6:15:03 AM PDT by cymbeline
[ Post Reply | Private Reply | To 47 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson