- #1
jk22
- 729
- 24
In logic a or b is true if both a and b are true but do you think the everyday or is in fact xor ?
I disagree:mathman said:xor is usually NOT the everyday meaning of or.
All of your examples are for things that are mutually exclusive. In those situations xor and or are identical.MrAnchovy said:I disagree:
I can think of some everyday "inclusive or"s though:
- you can have meat or fish for dinner
- I won't be back until Tuesday or Wednesday
- my bet for the winners of the World Cup is Germany or England
- are you going to vote for the liberal candidate or the conservative?
- this problem should take five or ten minutes
Bored with this now...
- I am waiting for a number 14 or a number 52 bus
- the committee is quorate if there are three members present including the Chairman or Treasurer
True for most of the first list, but (i) that merely illustrates the point that very often "or" in everyday speech is exclusive; and (ii) it is certainly possible to have both meat and fish for dinner, but this would not normally be the way "you can have meat or fish for dinner" is interpreted.mathman said:All of your examples are for things that are mutually exclusive. In those situations xor and or are identical.
jim mcnamara said:How about this sound bite:
A: Is it 3:00pm or 4:00pm?
B: Yes.
This is an xor response and is almost never used (except by math types making jokes) in normal English speech. Most educated people impliclty get it, but think the responder is being difficult or pedantic, almost never funny. My personal experience only.
XOR (exclusive OR) and OR (inclusive OR) are both logical operators used in computer science and mathematics. The main difference is that XOR returns a true value only when one of the inputs is true, while OR returns a true value if at least one input is true.
XOR logic is commonly used in everyday life in situations where we want to make a choice between two options. For example, when deciding whether to take an umbrella with us or not, we can use XOR logic to determine that if it is sunny, we will not take the umbrella, but if it is raining, we will take it.
Sure, XOR logic is often used in programming when dealing with boolean values. For instance, in a game, we can use XOR logic to determine if a player has collected all the necessary items; if they have collected one item but not the other, the XOR operation will return true.
OR logic is used in decision-making to present multiple options and allow for at least one of them to be chosen. This is especially useful when dealing with complex decisions that require evaluating multiple factors.
Yes, there are many other types of logic, such as AND, NOT, and NAND. These logical operators have different uses and can be combined to create more complex logical statements. They are used in various fields, including computer science, mathematics, and philosophy.