unit-propagation 0.1

Creator: bradpython12

Last updated:

0 purchases

unit-propagation 0.1 Image
unit-propagation 0.1 Images

Languages

Categories

Add to Cart

Description:

unitpropagation 0.1

Author: Ken Kundert
Version: 0.1
Released: 2024-03-01


This is a package used to experiment with adding unit propagation to QuantiPhy.
It currently employs simple-minded simplification rules that are relatively easy
to fool. Also, there is a strong emphasis on simple electrical unit scenarios.
Even so, it shows promise for use in well controlled settings.
Here is simple example:
from unit_propagation import (
UnitPropagatingQuantity as Quantity, QuantiPhyError
)
try:
v = Quantity("2.5V")
i = Quantity("100nA")
print(v/i)
except QuantiPhyError as e:
print(f"error: {e!s}")
Included in the package is a simple RPN calculator that allows you to explore
the capabilities and limitation of the unit propagation.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.