Crates.io | truth-table |
lib.rs | truth-table |
version | 0.2.0 |
source | src |
created_at | 2021-06-15 13:07:20.673348 |
updated_at | 2021-07-30 09:16:56.411977 |
description | Generate a truth table from a formula |
homepage | |
repository | https://github.com/elias1004/truth-table |
max_upload_size | |
id | 410442 |
size | 23,967 |
This is a very simple command-line tool to generate a truth table based on a given boolean expression.
$ truth-table "a or b"
a b | a∨b
0 0 | 0
0 1 | 1
1 0 | 1
1 1 | 1
$ truth-table "(a or b) -> c"
a b c | (a∨b)→c
0 0 0 | 1
0 0 1 | 1
0 1 0 | 0
0 1 1 | 1
1 0 0 | 0
1 0 1 | 1
1 1 0 | 0
1 1 1 | 1