Can this boolean expression be simplified?

后端 未结 5 1326
天涯浪人
天涯浪人 2021-01-15 22:16
(A Or B) And Not (A And B)
5条回答
  •  温柔的废话
    2021-01-15 22:56

    It is XOR (See table below).

    A B (A|B) (A&B) !(A&B) (A|B)&(!(A&B))
    T T   T     T      F        F
    T F   T     F      T        T
    F T   T     F      T        T
    F F   F     F      T        F

    You can also use not equal operation like (A != B).

    Hope this helps.

提交回复
热议问题