Multiplication precedes Negation

  • Thread starter Atran
  • Start date
  • #1
93
1
Hi,

Example 1.2.1. We have −3 × 4 − 5 + (−3) = −(3 × 4) − 5 + (−3) = −12 − 5 − 3 = −20. Note that we have recognized that 3 × 4 takes precedence over the − signs.
Does the author mean that [itex]−3 × 4 = 0 − 3 × 4 = −(3 × 4)[/itex] or else?

I consider the minus-sign to be a unary operator, which is preceded by multiplication and division. Am I thinking right?
 

Answers and Replies

  • #2
arildno
Science Advisor
Homework Helper
Gold Member
Dearly Missed
9,970
133
It won't matter if you, with the unary operator of negation choose to regard -3*4 as (-3)*4 or as -(3*4). That is, the order of the unary operator and multiplication need not be formally agreed upon.
 
  • #3
verty
Homework Helper
2,164
198
I think it is safe to assume that a unary operator without parentheses is meant to bind more tightly than any operator near it. So unary negation you may assume applies to the term directly in front of it.
 
  • #4
Office_Shredder
Staff Emeritus
Science Advisor
Gold Member
4,173
332
When he says precedence over the minus signs he's referring to doing the 3*4 calculation before the -5 +(-3) calculation. As arildno says it doesn't matter whether you calculate (-3)*4 or -(3*4) as those are the same thing
 
  • #5
arildno
Science Advisor
Homework Helper
Gold Member
Dearly Missed
9,970
133
I think it is safe to assume that a unary operator without parentheses is meant to bind more tightly than any operator near it. So unary negation you may assume applies to the term directly in front of it.
That is my gut feeling as well, but since the unary negation -x always can be replaced with the binary operator (-1)*x, it cannot possibly matter multiplicationwise whatever you choose to read it as.
 
  • #6
D H
Staff Emeritus
Science Advisor
Insights Author
15,393
685
I consider the minus-sign to be a unary operator, which is preceded by multiplication and division. Am I thinking right?
There is no consensus on the precedence of the unary + and - versus multiplication/division. Some place it higher (but almost always lower than exponentiation), others lower (and at the same level as addition and subtraction). It doesn't matter for the kinds of numbers with which you are accustomed. The end result will be the same regardless of whether you treat unary minus as being higher or lower than multiplication.
 
  • #7
arildno
Science Advisor
Homework Helper
Gold Member
Dearly Missed
9,970
133
The really fun thing about the negation, though, is how it can jump over a bundle of factors to find one to its liking, even take a step down to the denominator if it wants to, and then rush back again, or stay put. It doesn't matter.

(It should not push its luck down a continued fraction, though...)
 
  • #8
93
1
Thank you for your response. I'm thinking to stick with the precedence level above that of multiplication.

Instead of starting a new thread: I consider a value to be a computed or assigned number or quantity. What's the difference between number and quantity? What exactly are number, quantity and value?

Thanks for help.
 
Last edited:

Related Threads on Multiplication precedes Negation

Replies
6
Views
6K
  • Last Post
Replies
6
Views
3K
Replies
11
Views
3K
  • Last Post
Replies
12
Views
4K
  • Last Post
Replies
6
Views
2K
Replies
69
Views
29K
  • Last Post
Replies
9
Views
3K
  • Last Post
Replies
6
Views
3K
Replies
1
Views
12K
Top