Dimension of a quantity in Python language.
Project description
py-dimit
Dimension of a quantity in Python language.
Installation
$ pip install dimit
# or
$ python -m pip install dimit
Usage
from dimit import Dimension, L, M, T, DIMLESS
# L is a preset dimension for length
Dimension('L') == L
# Output: True
# Build a dimension of velocity (LT^-1).
Velocity = L / T # or L * T**-1
# or
Velocity = Dimension('LT-1')
# Output: Dimension(LT-1)
# Only support operator *, / amd **.
L*L*L == L**3
# Output: True
# Compare two dimensions
Dimension('LMT-2') == Dimension('MLT-2')
# Output: True
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
dimit-0.0.5.tar.gz
(40.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dimit-0.0.5-py3-none-any.whl
(27.6 kB
view details)
File details
Details for the file dimit-0.0.5.tar.gz.
File metadata
- Download URL: dimit-0.0.5.tar.gz
- Upload date:
- Size: 40.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c2425dec733276942d6057e8556a91453b055e73a148199c52f3227d44acbe0
|
|
| MD5 |
dbb17b9d4dd3f52a44ff1b649063caba
|
|
| BLAKE2b-256 |
1498216eb2bf19370a10bf6cebf1d4e4f72ea93d01097c4502d58fb581e0b823
|
File details
Details for the file dimit-0.0.5-py3-none-any.whl.
File metadata
- Download URL: dimit-0.0.5-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a67ccf06f6520cb848a93c343c30533cb324dc546051bef3ea940d0d7889eb33
|
|
| MD5 |
cfed80bc9031b9688930bcb966813634
|
|
| BLAKE2b-256 |
d2bdf661c9aefa199f2984798d6b130560bff32dafac065d246eca8195160d64
|