posit-playground
Goals:
- output nice bit representations
- build posit
from_doubleandfrom_bits - implement basic math operations
- add/sub
- mul
- div
Install
- stable
pip install posit-playground
Usage
from posit_playground import from_bits, from_double
p1 = from_bits(
bits=0b000110111011101,
size=16,
es=3,
)
p2 = from_double(
x=2.312,
size=6,
es=1,
)
p1 * p1 # implements posit multiplication
or better yet, launch a notebook on binder
or visit notebooks/1_posit_playground_demo.ipynb
Changelog
See CHANGELOG.md.
Demo
Screenshot of posit-playground in action, with a corner case example in which the exponent is chopped off the bit fields
Metadata
Release files for posit-playground 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| posit-playground-0.1.3.tar.gz | 10.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| posit_playground-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.6 kB
Release files / posit-playground-0.1.3.tar.gz
| Download URL | posit-playground-0.1.3.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0657d1741af8343211f1beef809c35164429aa46a6fd31e70b8bfb7d7fe70a1
|
|
BLAKE2b-256 checksum How to use checksums |
730bc86ffc2b9dd88b68776212e591e1856d878cb4bf9194a3a5f4d92224a534
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.9.7 Darwin/19.6.0
|
Release files / posit_playground-0.1.3-py3-none-any.whl
| Download URL | posit_playground-0.1.3-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c407dc291746fbb1de26c67b21228ff7f1cc7b475c9d430da562421337dfbfa0
|
|
BLAKE2b-256 checksum How to use checksums |
8fa3f277aa03c42e63b71422b740ed68a751f1afef280f794d7d135d35eb1234
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.9.7 Darwin/19.6.0
|
Security for posit-playground 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.