Logic
From Simple English Wikipedia, the free encyclopedia
Logic is the science of reasoning. Logic helps people decide whether something is true or false.
A popular example, given by Aristotle:
- All humans are mortal (They die at some point)
- Aristotle is a human
- Therefore, Aristotle is mortal.
is read like "and", meaning both of the two. is read like "or", meaning at least one of the two. is read like "implies", or "If ... then ...". is read like "not", or "it is not the case that ...".
This is the same example using logic symbols:
And this is the same example using general terms:
Finally, those talking about logic talk about logic clauses. A clause is simply something like "Aristole is human" or "all humans are mortal". Clauses have a truth value; they are either true or false, but not both. Mistakes in logic are called "fallacies".
There are statements that are always true.
is always true. It is called a tautology. (for example: "It rains, or it does not rain")
Logic is used by computers in what is called an algorithm. An algorithm is sort of like a cooking recipe; it tells the computer what to do and when to do it.