Skip to main content

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

This version
History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
truthtable-0.0.1-py3-none-any.whl (5.4 kB) Copy SHA256 hash SHA256 Wheel py3 Nov 9, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page