Python classes that provides support for extended integers (the set of integers, and infinity).
Project description
Example
In [0]: from numbers import *
In [0]: from extended_int import *
In [0]: i = IntegerInfinity()
In [4]: float(i)
Out[4]: inf
In [5]: print(i)
inf
In [6]: i ** i
Out[6]: inf
In [7]: i
Out[7]: inf
In [9]: isinstance(i, Real)
Out[9]: True
In [10]: isinstance(i, Integral)
Out[10]: False
In [11]: isinstance(i, Infinite)
Out[11]: True
In [12]: isinstance(i, ExtendedIntegral)
Out[12]: True
In [13]: isinstance(2, ExtendedIntegral)
Out[13]: True
In [14]: isinstance(2, Infinite)
Out[14]: False
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
extended_int-0.3.tar.gz
(2.5 kB
view hashes)
Built Distributions
extended_int-0.3-py3.7.egg
(6.4 kB
view hashes)
Close
Hashes for extended_int-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cac4e45b871f8209d0ec7554d41408e590c9bead50850156341791befce15afc |
|
MD5 | b0e343f3a4a64254d734fed901fe05e9 |
|
BLAKE2b-256 | 4f6b0bbd14235937732709fd9ac9d67b918aa7345daf330fe38e185af85d7b8f |