Skip to content
TruthTable function for Wolfram Mathematica
Mathematica
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
TruthTable.wl

README.md

TruthTable

TruthTable function for Wolfram Mathematica

Example

Needs["TruthTable`", "https://raw.githubusercontent.com/jmcl0028-afk/TruthTable/master/TruthTable.wl"];

TruthTable[(p && q) \[Equivalent] (\[Not] ((\[Not] p) || (\[Not] q))), {p, q}]

(*Table without heading*)
HeadlessTruthTable[(p && q) \[Equivalent] (\[Not] ((\[Not] p) || (\[Not] q))), {p, q}]

Argument Form

hypothesis1 := p \[Implies] q;
hypothesis2 := q \[Implies] r;
thesis := p \[Implies] r;

A := (hypothesis1 && hypothesis2) \[Implies] thesis;
TruthTable[A, {p, q, r}]

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details

You can’t perform that action at this time.