Current location - Training Enrollment Network - Mathematics courses - logical operation
logical operation
The proposition is either true or false; (Note: The existence of a proposition is different from its truth and falsehood. )

Sum is also called sum operation, or also called sum operation, instead of not; Xor I haven't seen it yet!

And and or are binocular operators, and not is monocular operator;

As long as one of AandB, A and B is false, the operation result is false; Only when everything is true can the result be true.

Namely: false and false = false; False and true = false; There is an exchange law: true and false = false; True and true = true.

As long as one of AorB, A and B is true, the operation result is true; The result is false, unless it is all false.

Namely: false or false = false; False or true = true; There is an exchange law: true or false = true; True or true = true.

Not is to compare the true value of an operand, otherwise,

Namely: not false = true; Incorrect = wrong

There are logical operators in logical operations, and the above are common logical operators;

There are also operational objects, often propositions, rather than the so-called real numbers in mathematics;

When logic operations are implemented in programming programs, real numbers are still used to represent truth and falsehood.

The rule is 0 for false, 1 for true; Either positive number means true, or non-zero means true;

The definition of true and false depends on the kind of programming language and the customization of users.

You seem to want to learn programming? Logical algebra is not used in programming, and I really can't figure out where it can be used!