SI unit system implementation enabling physical quantity math
Project description
unit_system
The unit_system package provides a way to do physical quantity math in Python that replicates Mathcad's unit system. The implementation conforms to the SI standard.
Installation
$ pip install unit_system
Usage
>>> from unit_system import Quantity
>>> V = Quantity(1, "V")
>>> A = Quantity(1, "A")
>>> 1*V / (1*A)
1.0 Ω
You can load predefined units like the ones in Mathcad.
>>> from unit_system.predefined_units import *
>>> 1*mΩ * 1*A
0.001 V
Documentation
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_system-1.0.12.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for unit_system-1.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca98bef3ed8bfe77f2b4ef1fd56f0136e4a304461c7317aa571cab7596a596e1 |
|
MD5 | a4c7f359aea2e45d68683cc999012d8f |
|
BLAKE2b-256 | 2c89d4df72c24e0c203a3d6eff6331bd6511d7ab8818fea2631b6813614d897b |