Patrice Koehl
Department of Computer Science
Genome Center
Room 4319, Genome Center, GBSF
451 East Health Sciences Drive
University of California
Davis, CA 95616
Phone: (530) 754 5121
koehl@cs.ucdavis.edu





Data, Logic, and Computing: Winter 2024


Generating a truth table


This page contains a simple tool for building the truth table associated with a composite proposition.

Enter your composite proposition below, using this table to define the logical operations. Your can choose the names of the variables you prefer, except v (for OR), T (tautology, always true), and F (contradiction, always false) that are reserved symbols.


Connectivity name: Normal representation Use
Negation (NOT) ¬  or   ˜ !   or   ˜
Conjunction (AND) ∧   or   &   or   &&
Disjunction (OR) v   or   ∥   or   ∥∥
Exclusive disjunction (XOR) +   or   !∥
Conditional ->
Biconditional <->


Loosely adapted from:

I thank them for putting their code online!!!










  Page last modified 19 February 2024 http://www.cs.ucdavis.edu/~koehl/