Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 1.32 KB

README.md

File metadata and controls

32 lines (28 loc) · 1.32 KB

Logical Gates

A sample code for using typescript with generic react components image

Goals

to make a dynamic formula generator with contants, arguments and logical gates (and, or, ...)

  • Arguments: named variables you can define them in global scope to reuse in your formula.
  • Contants: any boolean value you can set inside your formula.
  • Logical gates: some predefined functions to use as logical operators inside your formula.

Gates

  • AND: The AND gate is a basic digital logic gate that implements logical conjunction (∧) from mathematical logic. wikipedia
  • OR: it performs a logical disjunction (∨) from mathematical logic. wikipedia
  • XOR: implements an exclusive or ({\displaystyle \nleftrightarrow }\nleftrightarrow) from mathematical logic. wikipedia
  • NOT: which implements logical negation. wikipedia

Todo

  • NAND gate
  • NOR gate
  • XNOR gate
  • IMPLY gate

Running localy

  1. clone code into your machine
  2. install dependancies:
yarn
  1. start app in development mode
yarn start