numbers with additative and multiplicative inverses
Project description
Overview
numbers with additative and multiplicative inverses
Installation
To install anfesibena, you can use pip. Open your terminal and run:
pip install anfesibena
Implementation
class Anfesibena:
def __div__(self, other):
return self * (other**-1)
def __neg__(self):
return self * -1
def __rdiv__(self, other):
return other * (self**-1)
def __rsub__(self, other):
return other + (self * -1)
def __rtruediv__(self, other):
return other * (self**-1)
def __sub__(self, other):
return self + (other * -1)
def __truediv__(self, other):
return self * (other**-1)
License
This project is licensed under the MIT License.
Links
Credits
Author: Johannes
Thank you for using anfesibena!
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
anfesibena-1.0.2.tar.gz
(2.6 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
File details
Details for the file anfesibena-1.0.2.tar.gz.
File metadata
- Download URL: anfesibena-1.0.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
785c3a5d71b7b73b3bf5bd5c8c274f7b27d3a26cc23c8e21c30e48e3a946c118
|
|
| MD5 |
51bdcdc732f98511002d9ec409f0f0bb
|
|
| BLAKE2b-256 |
eb1965c8862700d998303e8e535f2d34d39e28027859acb8f51e837f3f232a8f
|
File details
Details for the file anfesibena-1.0.2-py3-none-any.whl.
File metadata
- Download URL: anfesibena-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d42d76828023860d03fa0768dd82b615c4f70c8a2ec90f85cb12069602003fc
|
|
| MD5 |
ee834d073772c2cf29a67c17dadb5c72
|
|
| BLAKE2b-256 |
34f3127dab41774752dbb2aa55073173b358dfaa79e2048bb513f686f8521c0e
|