Three-valued logic (TS)
✓ Published0🌍 Public
HHypercubed
Last edited Dec 23, 2017
Created on Dec 23, 2017
This example visualizes the results of three-valued logic operations on boolean values (true, false, null). It shows how functions like `and`, `or`, `xor`, `nand`, and `nor` produce truth tables for the three possible inputs. The visualization uses a grid or matrix layout to display the outcomes, with each cell representing a combination of left-hand and right-hand operands. The code defines these operations in TypeScript, using a custom `bool` type and `cmpValue` for comparisons, and the rendering likely maps the ternary results to distinct colors or shapes. The data source is the gist by Hypercubed, and the approach relies on the explicit function definitions rather than external libraries.
AI-generated description