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 hashes)
Built Distribution
Close
Hashes for anfesibena-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d42d76828023860d03fa0768dd82b615c4f70c8a2ec90f85cb12069602003fc |
|
MD5 | ee834d073772c2cf29a67c17dadb5c72 |
|
BLAKE2b-256 | 34f3127dab41774752dbb2aa55073173b358dfaa79e2048bb513f686f8521c0e |