physical quantities (numbers with units)
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
unit_propagation-0.1.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for unit_propagation-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f5205517f4da2965daa3ac8c516df9c3d08f8a3719f48aa534388f75a5b5351 |
|
MD5 | 3432a5857cac5fa2441c092b8b36e0fe |
|
BLAKE2b-256 | 7e8bc7fca9aeccfa0b7c1efd579c79f4afd077fec5d668a17d4b25d644d4e45d |