# Thread: Algebra | Level 1 Math "Set"

1. Originally Posted by arunforce

not sure what you're trying to ask

Here, I don't know what to do..

Can you give me at least 1 example? Our professor didn't teach to us..

2. E U F = Integers excluding 0

Here's the logic:

E contains all even integers( ..., -4, -2, 2, 4 , ...)
F contains all odd integers(..., -3, -1, 1, 3, ...)

E U F = (..., -2, -1, 1, 2, ...)

I exclude 0 because I think it is neither odd or even.

For the x|x, it means x such as x...

so x|x is an even integer = x such as x is an even integer
@Jhem

also I think number 2 would be all even positive integers.

3. ## The Following User Says Thank You to Gab For This Useful Post:

[MPGH]Jhem (06-28-2015)

4. Originally Posted by PABLO DICKBAR OPEN TOASTHOLE 4 U
E U F = Integers excluding 0

Here's the logic:

E contains all even integers( ..., -4, -2, 2, 4 , ...)
F contains all odd integers(..., -3, -1, 1, 3, ...)

E U F = (..., -2, -1, 1, 2, ...)

I exclude 0 because I think it is neither odd or even.

For the x|x, it means x such as x...

so x|x is an even integer = x such as x is an even integer
@Jhem

also I think number 2 would be all even positive integers.
THank you brother, Now I understand what do I need.

5. Originally Posted by PABLO DICKBAR OPEN TOASTHOLE 4 U
E U F = Integers excluding 0

Here's the logic:

E contains all even integers( ..., -4, -2, 2, 4 , ...)
F contains all odd integers(..., -3, -1, 1, 3, ...)

E U F = (..., -2, -1, 1, 2, ...)

I exclude 0 because I think it is neither odd or even.

For the x|x, it means x such as x...

so x|x is an even integer = x such as x is an even integer
@Jhem

also I think number 2 would be all even positive integers.
I consider 0 even. I just googled what | means and you're right.

So basically

E U F, where E = { 2 }, F = { 3 } => E U F = {2, 3}
E (Upside Down U) F, where E = { 2 }, F = { 3 } => E (Upside Down U) F = {}

6. Originally Posted by arunforce

I consider 0 even. I just googled what | means and you're right.

So basically

E U F, where E = { 2 }, F = { 3 } => E U F = {2, 3}
E (Upside Down U) F, where E = { 2 }, F = { 3 } => E (Upside Down U) F = {}
You can just consider U and Upside down U as bitwise AND and bitwise OR, but you compare wheter it contains something or not.

Lets say E = {1,3,7,8} and F = {2, 3, 5}, you can transform them in bit train or w/e you call that in english, and you get
E = {0,1,0,1,0,0,0,1,1}
F = {0,0,1,1,0,1,0,0,0}

where the first bit is 0 because it doesn't contain the number 0, the second one is 1 because it contains 1, the third one is 0 because E doesn't contain 2, etc...

after that you do {0,1,0,1,0,0,0,1,1} AND {0,0,1,1,0,1,0,0,0},

which gives you

{0,0,0,1,0,0,0,0,0}

Therefore E AND F = {3}

NOw you can't do that for huuuuge arrays, but thats the logic behind these operators.

7. ## The Following User Says Thank You to Gab For This Useful Post:

[MPGH]Jhem (06-28-2015)

8. Originally Posted by arunforce
x|x is referring to two different integers, I believe... so:

E = {2, 4}
F = {1, 5}

E U F = {1,2,4,5}

9. Originally Posted by PABLO DICKBAR OPEN TOASTHOLE 4 U

You can just consider U and Upside down U as bitwise AND and bitwise OR, but you compare wheter it contains something or not.

Lets say E = {1,3,7,8} and F = {2, 3, 5}, you can transform them in bit train or w/e you call that in english, and you get
E = {0,1,0,1,0,0,0,1,1}
F = {0,0,1,1,0,1,0,0,0}

where the first bit is 0 because it doesn't contain the number 0, the second one is 1 because it contains 1, the third one is 0 because E doesn't contain 2, etc...

after that you do {0,1,0,1,0,0,0,1,1} AND {0,0,1,1,0,1,0,0,0},

which gives you

{0,0,0,1,0,0,0,0,0}

Therefore E AND F = {3}

NOw you can't do that for huuuuge arrays, but thats the logic behind these operators.
thanks gab never took a programming course b4

Originally Posted by Sölvi
I won't RKO u if u thank this post http://www.mpgh.net/forum/showthread...1#post10663234

- - - Updated - - -

also the 0 even thing was for u, the rest was for him

10. Originally Posted by arunforce

thanks gab never took a programming course b4

I won't RKO u if u thank this post http://www.mpgh.net/forum/showthread...1#post10663234

- - - Updated - - -

also the 0 even thing was for u, the rest was for him
I just wanted to tell you about the bit trains lol, not how to do 0 AND 1

11. What the fuck.
This is Algebra 1?
I don't remember learning any of this back in Algebra 1. Lol

12. Originally Posted by PABLO DICKBAR OPEN TOASTHOLE 4 U
E U F = Integers excluding 0

Here's the logic:

E contains all even integers( ..., -4, -2, 2, 4 , ...)
F contains all odd integers(..., -3, -1, 1, 3, ...)

E U F = (..., -2, -1, 1, 2, ...)

I exclude 0 because I think it is neither odd or even.

For the x|x, it means x such as x...

so x|x is an even integer = x such as x is an even integer
@Jhem

also I think number 2 would be all even positive integers.
Actually, 0 is an even integer.

13. Originally Posted by Cheenku
Actually, 0 is an even integer.
Ya I wasn't sure so I just excluded it

15. Originally Posted by Dave84311 Jr

Wh.. why??

Thank you again. @pablo DICKBAR OPEN TOASTHOLE 4 U and @arunforce

16. It's helps to think of the ∪ (union) and ∩ (intersection) of sets of numbers in terms of a venn diagram.

A ∩ B = C (common elements)

A ∪ B = C (combined elements)

PatrickJMT does a good explanation about this (should check out his other videos on his website too):

17. ## The Following User Says Thank You to master131 For This Useful Post:

Gab (06-29-2015)

18. Math makes me cry :,(

Page 2 of 2 First 12