UNPKG

tvl

Version:

A 316B implementation of Three Valued Logic in Javascript

28 lines (18 loc) 1.72 kB
## <img style="margin-left:auto;margin-right:auto;display-block:inline;" src="https://raw.githubusercontent.com/archanpatkar/tvl/master/tvl.png"/> [![npm version](https://badge.fury.io/js/tvl.svg)](https://badge.fury.io/js/tvl) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Actions Status](https://github.com/archanpatkar/tvl/workflows/Test-Build-Publish/badge.svg)](https://github.com/archanpatkar/tvl/actions?workflow=Test-Build-Publish) [![Maintainability](https://api.codeclimate.com/v1/badges/36c7140f0f8cc090dd1c/maintainability)](https://codeclimate.com/github/archanpatkar/tvl/maintainability) This library provides the user with all the standard Propsitional Logic like operations of Non - Classical Trivalent or Three Valued Logic. This is an implementation of Kleene's (strong) "logic of indeterminacy" and Priest's "logic of paradox". Three valued logic is a multivalued logic i.e. it has more than two truth values in contrast to Propositional Logic which has only true and false, it introduces a third type of assertion undefined or indeterminate which allows the logic system to capture a fuzzy world view. The fundamental operations remain the same but the semantic understanding and logical implications change when compared to Propositional operations. The distribution of the library has a very small footprint, only 316 Bytes (Min + Gzip). ## Installation <h3>NPM</h3> ``` npm install tvl ``` <h3>Browser</h3> ``` <script src="https://unpkg.com/tvl"><script/> ``` <h3>Browser Optimized (GZipped)</h3> ``` <script src="https://unpkg.com/tvl/dist/tvl.min.js.gz"><script/> ``` ## Usage [Documentation](https://tvl.archan.io)