请输入您要查询的字词:

 

单词 OR operation
释义
OR operation

Computer
  • The logical connective combining two statements, truth values, or formulas P and Q in such a way that the outcome is true if either P or Q or if both P and Q is true (see table). The latter outcome distinguishes the OR from the exclusive-OR operation. The OR operation is usually denoted by ∨ and occasionally by +. It is one of the dyadic operations of Boolean algebra and is both commutative and associative.

    OR operation

    OR operation. Truth table

    One way of implementing the OR operation (e.g. in Lisp) is to test P first, and then evaluate Q only if P is false. The resulting operation is noncommutative; in some languages there is a distinct notation for this.

    When it is implemented as a basic machine code instruction, OR usually operates on pairs of bytes or pairs of words. In these cases the OR operation defined above is normally applied to pairs of corresponding bits.


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/6 3:51:19