Generate truth table according to logic expressions.
!
,~
,not
,¬
are the same.&
,*
,and
,∧
, are the same.|
,+
,or
,∨
,v
are the same.<->
,↔
are the same.->
,→
are the same.^
,⊕
are the same.
Python3 is required, see help using python TruthTableGenerator.py
or python3 TruthTableGenerator.py
usage: [-h | --help] [-i | --input <file path>]
[-o | --output <file path>] [-c | --console]
[-m | --markdown] [-r | --reverse ]
[-i | --input <file path>]
input from <file path>
[-o | --output <file path>]
output the result to <file path>
[-c | --console]
console mode (default)
[-m | --markdown]
generate markdown table
[-r | --reverse]
reverse the enumerate order (default F -> T)
using TruthTableGenerator.exe
to use a GUI calculator to calculate directly.
You only need to download the TruthTableGenerator.exe
and click it.
- It can input expressions from a file and generate tables for expressions in each line.
- It can generate a markdown table by using command.
- You can copy your table by clicking the
copy
button on GUI.
- You cannot use variable names that contain numbers.
- You'd better use no more than four variables, otherwise the GUI will not display properly.