Skip to main content

A package to help calculate the result of a logical expression

Project description

logicexp

A package which can help in calculating the result of any logical expression consisting of various logical operations.

It would be very helpful when you have to calculate the result of a logical expression with given input values or to verify the correctness of your output.

Examples of How To Use

from logicexp import Nand, Nor, Not, Or, Xor,Calculate

print(Calculate(Xor(0,1)))
# 1
print(Calculate(Nor(1,0)))
# 0
print(Calculate(Or(Nand(1,1),Not(1))))
# 0

Function Description

Function Description
Or Represents Logical Or Operation
And Represents Logical And Operation
Not Represents Logical Not Operation
Xor Represents Logical Xor Operation
Nand Represents Logical Nand Operation
Nor Represents Logical Nor Operation
Calculate Calculates the result of logical expression

Project details


Download files

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

Source Distribution

logicexp-0.0.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logicexp-0.0.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file logicexp-0.0.3.tar.gz.

File metadata

  • Download URL: logicexp-0.0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.6

File hashes

Hashes for logicexp-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2190daab9cb58bd652c6b41118d165db8d4da0470b0d6a1b7d188d17602d52a0
MD5 01fec7e7fd152914fd46d372a37f61ac
BLAKE2b-256 7bf6eb559574d582d8f73436ff4cd5f07656a4cb6adea9623a4225757cb8fdcd

See more details on using hashes here.

File details

Details for the file logicexp-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: logicexp-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.6

File hashes

Hashes for logicexp-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d3a3b7950e0ac2820da91fe36d9141d5afeb9599f893475f6b9b96d9d850e868
MD5 c2465ecd3322e5a0d86b97ca005f4686
BLAKE2b-256 0b8c84d04389964709125e3f93a52c0004caefe857b414c786638f8302160c7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page