Skip to content

pedropalhari/logicTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Running

node index.js

Examples

  • Input

> (a . b) + (~ a . c)

  • Output
----------------------------
| A | B | C | (A.B)+(~A.C) |
----------------------------
| 0 | 0 | 0 |       0      |
----------------------------
| 0 | 0 | 1 |       1      |
----------------------------
| 0 | 1 | 0 |       0      |
----------------------------
| 0 | 1 | 1 |       1      |
----------------------------
| 1 | 0 | 0 |       0      |
----------------------------
| 1 | 0 | 1 |       0      |
----------------------------
| 1 | 1 | 0 |       1      |
----------------------------
| 1 | 1 | 1 |       1      |
----------------------------
  • Input

> (A AND B) OR (NOT C AND B)

  • Output
------------------------------------------
| A | B | C | (A AND B) OR (NOT C AND B) |
------------------------------------------
| 0 | 0 | 0 |              0             |
------------------------------------------
| 0 | 0 | 1 |              0             |
------------------------------------------
| 0 | 1 | 0 |              1             |
------------------------------------------
| 0 | 1 | 1 |              0             |
------------------------------------------
| 1 | 0 | 0 |              0             |
------------------------------------------
| 1 | 0 | 1 |              0             |
------------------------------------------
| 1 | 1 | 0 |              1             |
------------------------------------------
| 1 | 1 | 1 |              1             |
------------------------------------------

README written with StackEdit.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published