Operators. Logic operations

Operators are the commands for running the computer over the program.

Operators are represented by appropriate identifiers in the form of special mathematical signs and words.

The basis of any computing device is elementary logic schemes, which are based on the laws and rules of the algebra of logic.

The apparatus of logic algebra was developed in 1854 by J. Bool as an attempt to study the logic of thinking by mathematical methods.

In 1938, K. Shannon used the Boolean algebra for the analysis of relay nets.

The main logical operations are:

  • and - logical multiplication or conjunction;
  • or - logical addition or disjunction;
  • not - logical subtraction or inversion.

These logical operations allow you to formulate more complex logical expressions.

Truth tables:

a

and

b

_____

a

or

b

1

1

1

 

1

1

1

1

0

0

 

1

1

0

0

0

1

 

0

1

1

0

0

0

 

0

0

0

The operations of the relation <,>, <=,> =, = and <> associate two algebraic expressions, form a new type of expression.

The type of equation is represented by the `=` character, and the type of inequality can be represented by one of the characters ``> `,` <`, ` <= `.