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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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