if a={-3,-2,1,5} and b={2,10,12} then a-b =
Answers
Step-by-step explanation:
A = {-3, -2 , 1 , 5}
B = {2 , 10 , 12}
A-B = { -3, -2, 1, 5}
Here, none of the elements are same.
Hope it helps.
Additional Information:-
In sets,
★ A-B = Elements which are present in A but not in B.
★B-A = Elements which are present in B but not in A.
★AUB = Elements which are in both.
★A intersection B = Elements which are common in both.
Answer:
Let A and B be two sets.
Steps to perform operation A−B .
1. Look at each element of A one-by-one. See if it is present in B or not. If it is present in B, mark it (in set A).
2. Now, remove all the elements of set A that you have marked in above step. The remaining set is your answer.
So, for the example asked proceed as follows.
Start with the first element of set A i.e. "-3". Is it in set B? No.
Go to the next element of set A ("-2"). Is it in set B? No.
Go to the next element of set A ("1"). Is it in set B? No.
Go to the next element of set A ("5"). Is it in set B? No.
Now, remove all marked elements of set A. There was none .
The set is {-3,-2,1,5}. This is the answer for A-B.
NOTE: A−B≠B−A .
To perform B-A, do the "opposite". Look at each element of set B and see if it occurs in set A or not. If it occurs in set A, mark it (in set B). Now, simply remove the elements that you have marked in set B. The remaining set if your answer.
hope this will help you.