Skip to main content

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.

Credits

Thank you for using anfesibena!

Project details


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)

Uploaded Source

Built Distribution

anfesibena-1.0.2-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page