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.11.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for unit_system-1.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb798dfb4c0efe11b53362e9645e2bd8c0c5e9715e3b84c883b78b12eeca23a2 |
|
MD5 | 11711b4933073b6fb608b25f8e3bc7a0 |
|
BLAKE2b-256 | 6374d8b8be3b486a59908d9c88bf6b13fd455d9a56b3fd6e76c521ac555e0754 |