Algebra | Level 1 Math "Set"
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.
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.
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.
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
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 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
What the fuck.
This is Algebra 1?
I don't remember learning any of this back in Algebra 1. Lol
This is Algebra 1?
I don't remember learning any of this back in Algebra 1. Lol
mfw this thread


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):
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):
Math makes me cry :,(



