![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Written as a comment by
[Error: Irreparable invalid markup ('<lj-username="polkamadness">') in entry. Owner must fix manually. Raw contents below.]
Written as a comment by <lj-username="polkamadness"> in mertuil's journal:
You're looking at this all wrong; you just need to reframe things a bit. Operator precedence is all about dominance and submission. The very word "precedence" should have given you a hint -- it's a polite word for dominance.
Mr. addition and Mr. subtraction are submissives; Mr. multiplication and Mr. division are dominants. Hence in expressions like 2+3*4 and 4*3+2, Mr. addition submissively allows Mr. multiplication to have his way with the three before he does. We also say that Mr. multiplication binds tighter than Mr. addition.
What about when two submissives want to have their way with the same number? Being polite types, they agree to let whomever got there first go first. I.e., in 2-3-4 the first Mr. subtraction on the left goes first and has his way with the two and three. The second Mr. subtraction is left with the sloppy leavings and the four.
Dominants also have a first come, first served rule, although they're not very polite about it.
Mr. exponentation is an ultra-dominant; all the dominances and submissives defer to him.
Ultra dominants are far from polite -- "no, *you* go first!" -- and are so macho that they force the second ultra-dominant to go first. I.e., in 2^3^4, the second Mr. exponentation goes first.
Mr. Negation, perhaps because he only gets to have his way with one number, is dominant not submissive like you would expect. Thus, in -2+3 he gets to have his way with the two before Mr. addition.
You're looking at this all wrong; you just need to reframe things a bit. Operator precedence is all about dominance and submission. The very word "precedence" should have given you a hint -- it's a polite word for dominance.
Mr. addition and Mr. subtraction are submissives; Mr. multiplication and Mr. division are dominants. Hence in expressions like 2+3*4 and 4*3+2, Mr. addition submissively allows Mr. multiplication to have his way with the three before he does. We also say that Mr. multiplication binds tighter than Mr. addition.
What about when two submissives want to have their way with the same number? Being polite types, they agree to let whomever got there first go first. I.e., in 2-3-4 the first Mr. subtraction on the left goes first and has his way with the two and three. The second Mr. subtraction is left with the sloppy leavings and the four.
Dominants also have a first come, first served rule, although they're not very polite about it.
Mr. exponentation is an ultra-dominant; all the dominances and submissives defer to him.
Ultra dominants are far from polite -- "no, *you* go first!" -- and are so macho that they force the second ultra-dominant to go first. I.e., in 2^3^4, the second Mr. exponentation goes first.
Mr. Negation, perhaps because he only gets to have his way with one number, is dominant not submissive like you would expect. Thus, in -2+3 he gets to have his way with the two before Mr. addition.
no subject
Date: 2004-01-19 03:04 pm (UTC)Oh, gods, I love it! My little mathematical heart (encased in the low-cleavage leather corset) is just going pitter-pat at the thought!
It's too bad that the other math geeks that I know wouldn't appreciate the leather comments, and the other leather folk aren't as enthusiastic about math as I am. I would like send a link to this post to one of the leather group lists, if that is all right by you?
Certainly, but I stole it from polkamadness
Date: 2004-01-19 10:37 pm (UTC)Oh, btw? That heart beating in the leather corset? OMG!
Second Comment
Date: 2004-01-19 10:59 pm (UTC)no subject
Date: 2004-01-20 01:09 pm (UTC)