Common operator notation: Difference between revisions

Content deleted Content added
No edit summary
Rriegs (talk | contribs)
Fixed bad equations
Line 24:
Note that, contrary to popular belief, prefix and postfix operators do not necessarily have higher precedence than all infix operators. For example, if the prefix operator 'sin' is given a precedence between that of '+' and '×',
 
:<math>\sin 4×34 \cdot 3+2 = ((\sin(4×34 \cdot 3)) + 2)</math>
 
not
 
:<math>(((\sin 4) ×\cdot 3) + 2)</math>
 
or
 
:<math>\sin(((4×34 \cdot 3)+2))</math>
 
The rules for expression evaluation are simple: