Everything2
Near Matches
Ignore Exact
Full Text
Everything2

associative property

created by jakohn

(idea) by jakohn (2.1 mon) (print)   ?   (I like it!) 1 C! Fri Apr 28 2000 at 22:59:21

The associative property, or associative law, is a property of many arithmetic and logical functions that says that the order of evaluation does not matter. Example:

Suppose you have the equation:
1 + 2 + 3 + 4 + 5 + 6
You may evaluate it in any order:
((1 + 2) + (3 + 4)) + (5 + 6) = (3 + 7) + 11 = 10 + 11 = 21
or:
1 + (2 + (3 + (4 + (5 + 6)))) = 1 + (2 + (3 + (4 + 11))) = 1 + (2 + (3 + 15)) = 1 + (2 + 18) = 1 + 20 = 21

Or many other ways. While different ways may be quicker, they all lead to the same answer. Addition, Multiplication, AND, OR, XOR are all associative.

Now consider subtraction with the equation:
6 - 5 - 4 - 3 - 2 - 1
If you do:
(6 - 5) - ((4 - 3) - (2 - 1)) = 1 - (1 - 1) = 1 - 0 = 1
Whereas, if you do:
((6 - 5) - (4 - 3)) - (2 - 1) = (1 - 1) - 1 = 0 - 1 = -1

Which are obviously not the same. Subtraction is thus not associative. Neither is division. In order to properly evaluate them we need to have rules of algebraic precedence.


printable version
chaos

commutative property transitive property Associativity This week, Jen's got a new man, or, another take on some algebraic properties
Multiplication division Associative sigma notation
metasyntactic variable British Order of Precedence algebraic logic integer
XOR Veruca Salt inspired me to yell at my housemates ROM
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
Lollapalooza
Brian Eno Random Node Conspiracy
Terror and Liberalism
The day my mom died
Intacto
The Shiring of England
Language is like a river
The Grey Album
Kiss of the Spider Woman
fried rice
Hand plane
Michel de Montaigne
RumourQuest 2006
New Writeups
Aerobe
Watch out for falling meat(poetry)
C-Dawg
Beelzebub has a devil put aside for me(fiction)
Pavlovna
My Better Half(fiction)
kanoodle
Molson muscle(essay)
aneurin
You pays your money and you takes your choice(idea)
shaogo
July 20, 2008(log)
Glowing Fish
Tualatin River(place)
The Jacket
Words of Advice(idea)
John_Fox
Good Intentions Gone Wrong(person)
Heitah
Posthumous Oscar(thing)
ignis_glaciesque
University of South Florida(place)
ignis_glaciesque
Flogstaskriket(idea)
liveforever
Caesar's last breath(idea)
dagnyswaggart
she wants to believe(personal)
antigravpussy
he doesn't know, but her eyes widen too far(thing)
Everything 2 is brought to you by the letter C and The Everything Development Company