AND

ANDGate

A connective in logic which yields true if all conditions are true, and false if any condition is false. A AND B is denoted A ^ B (Mendelson 1997, p. 12), A&B, A intersection B (Simpson 1987, p. 538), A·B, A.B (Carnap 1958, p. 7), or simply AB (Simpson 1987, p. 538). The way to distinguish the similar symbols  ^ (AND) and  v (OR) is to note that the symbol for AND is oriented in the same direction as the capital letter 'A.' The AND operation is implemented in the Wolfram Language as And[A, B, ...]. The circuit diagram symbol for an AND gate is illustrated above.

The AND operation ( ^ ) can be written in terms of NOT (!) and OR ( v ) as

 A ^ B=!(!A v !B).

The binary AND operator has the following truth table (Carnap 1958, p. 10; Simpson 1987, p. 545; Mendelson 1997, p. 12).

ABA ^ B
TTT
TFF
FTF
FFF

A product of ANDs (the AND of n conditions) is called a conjunction, and is denoted

  ^ _(k=1)^nA_k.

For example, the truth table for A AND B AND C is given below (Simpson 1987, p. 545).

ABCA ^ B ^ C
TTTT
TTFF
TFTF
TFFF
FTTF
FTFF
FFTF
FFFF
BitAnd

Two binary numbers can have the operation AND performed bitwise with 1 representing true and 0 false. Some computer languages denote this operation on A, B, and C as A && B && C or logand(A,B,C). Bitwise AND is implemented in the Wolfram Language as BitAnd[n1, n2, ...]. The illustration above plots the bitwise AND of the array of numbers from -31 to 31 (Wolfram 2002, p. 871).

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.