In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
What Boolean logic operators are there? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Boolean logic operators are: "and" (logic and), "or" (logic OR), "not" (logic non), "XOR" (logic XOR). Logic and interpretation are equivalent to "and" and the result is true only if two operands are true; logic or operator, which returns "false" when all operands are "false".
There are four types of Boolean logic operators: and (logical and), or (logical OR), not (logical non), and XOR (logical XOR).
1. And (logic and)
In life, logic and explanation are equivalent to "and". & calls logic and, and the result is true only if both operands are true. & called concise and or short circuit, and only two operands are true, the result is true.
2. Or (logical OR)
If one or more operands are true, the logic or operator returns a Boolean value true;. The result is false only if all operands are false.
3. Not (logic is not)
Logical negation is the reciprocal of the original value.
4. Xor (logical XOR)
If an and B are different, the exclusive or result is 1. If an and B are the same, the exclusive or result is 0.
Extended data:
The origin of Boolean logical operators:
Boolean used mathematical methods to study logical problems and successfully established logical calculus. He represents judgment by equality and regards reasoning as the transformation of equality. The effectiveness of this transformation does not depend on people's interpretation of symbols, but only on the combination of symbols. This logical theory is often called Boolean algebra.
In the 1930s, logic algebra was applied to circuit systems. Subsequently, with the development of electronic technology and computer technology, a variety of complex large-scale systems have emerged, and their transformation laws also follow the laws revealed by Boolean operations.
After reading the above, have you mastered any methods of Boolean logic operators? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.