Science Fair Projects Ideas - Logical disjunction

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Logical disjunction

(Redirected from Disjunction (logic))

Logical disjunction (usual symbol or) is a logical operator that results in true if either of the operands is true.

Contents

Definition

In logic and mathematics, a disjunction is an "or statement". For example "John skis or Sally swims" is a disjunction.

Note that in everyday language, use of the word "or" can sometimes mean "either, but not both" (e.g., "would you like tea or coffee?"). In logic, this is called an "exclusive disjunction" or "exclusive or" (xor). When used formally, "or" allows for both parts of the or statement (its disjuncts) to be true ("and/or"), therefore "or" is also called inclusive disjunction.

Note: Boole, closely following analogy with ordinary mathematics, premised, as a necessary condition to the definition of "x + y", that x and y were mutually exclusive. Jevons, and practically all mathematical logicians after him, advocated, on various grounds, the definition of "logical addition" in a form which does not necessitate mutual exclusiveness.

For two inputs A and B, the truth table of the function is as follows.

A B A or B
F F F
F T T
T F T
T T T

More generally a disjunction is a logical formula that can have one or more literals separated only by ORs. A single literal is often considered to be a degenerate disjunction.

Symbol

The statement "P or Q" is often written as

P \lor Q

Such a disjunction is false if both P and Q are false. In all other cases it is true.

All the following are disjunctions:

A \lor B
¬A \lor B
A \lor ¬B \lor ¬C \lor D \lor ¬E

The equivalent notion in set theory is the set theoretic union.

Associativity and commutativity

For more than two inputs, or can be applied to the first two inputs, and then the result can be or'ed with each subsequent input:

(A or B or C or D) ⇔ (((A or B) or C) or D)

Because or is associative, the order of the inputs does not matter: the same result will be obtained regardless of association.

The operator xor is also commutative and therefore the order of the operands is not important:

A or BB or A

Bitwise operation

Disjunction is often used for bitwise operations. Examples:

  • 0 or 0 = 0
  • 0 or 1 = 1
  • 1 or 0 = 1
  • 1 or 1 = 1
  • 1010 or 1110 = 1110

See also

10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice