Small program to build truth tables from expressions
Project description
Truthtable
Usage:
./truthtable.py [-hbn] [--help] [--bool|--numeric]
-h | --help Print this message
-b | --bool Use boolean values to fill the table
-n | --numeric Use numeric values to fill the table(defualt)
-d | --debug For printing intermediate representation of expression
Expression syntax:
Variable name:
[a-zA-Z]+
Operations:
&& - conjunction
|| - disjunction
-> - implication
<- - converse implication
<=> - biconditional
^ - exclusive disjunction
~ - negation
Examples:
A && B ^ ~(~A || (A<=>C))
A && B <=> ~(~A -> ~(~B <=> A))
BC -> A -> C <=> ~(A || (BC && C))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for truthtable-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9d0cc44af4ad4d126d03316bf2c15519b428f86787cd4176a0b9eda68f38217 |
|
MD5 | f6165534125eee88c0f0625b2b426d42 |
|
BLAKE2b-256 | 1006792061ad6274dc14d38511a9ff46d25ae1d14d86b0ecf81e1eddeea64e06 |