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 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.36.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for unit_system-1.0.36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89d51de01b9b3bc8837319953f5799f0cfda6f216a4cb9f919d50a1aa5f6536d |
|
MD5 | a4c806a2cdc790ba233d8890ab1f5c60 |
|
BLAKE2b-256 | 1f470f832215fd917eecf73013659c0586e43a326fb419b5f9bf3e886fa61634 |