https://github.com/andars/truth-table
generates truth tables from boolean expressions
https://github.com/andars/truth-table
Last synced: about 2 months ago
JSON representation
generates truth tables from boolean expressions
- Host: GitHub
- URL: https://github.com/andars/truth-table
- Owner: andars
- Created: 2016-01-12T05:17:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-14T01:20:38.000Z (about 9 years ago)
- Last Synced: 2025-02-08T19:43:03.474Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# truth table generator
## example
```
$ ruby eval.rb
abc + (~a)bc + a(~b)c
^Df(a, b, c):
a b c | abc + (~a)bc + a(~b)c
----------
0 0 0 | 0
0 0 1 | 0
0 1 0 | 0
0 1 1 | 1
1 0 0 | 0
1 0 1 | 1
1 1 0 | 0
1 1 1 | 1
```