Skip to content
Giggy edited this page Apr 6, 2022 · 8 revisions

Logic Functions

Logic functions are functions that deal with booleans.

List:

  1. Isbool()
  2. eqlogic()
  3. Not()
  4. And()
  5. Or()
  6. Xor()
  7. Implies()

Isbool(P)

Takes in a number, and outputs true if it is 1 or 0 and false if it is not.

eqlogic(P,Q)

Takes in two booleans, and outputs if they are the same.

Not(P)

Takes in a boolean, and outputs the opposite of that boolean.

And(P,Q)

Works like the AND gate.

Or(P,Q)

Works like the OR gate.

Xor(P,Q)

Works like the XOR gate.

Implies(P,Q)

Works like the IMPLIES gate.

Clone this wiki locally