Object-oriented continued fractions with Python.
Project description
continuedfractions
A simple extension of the Python fractions
standard library for working with continued fractions as Python objects.
The PyPI package only uses standard libraries and can be installed on any Linux, Mac OS or Windows system supporting Python 3.10, 3.11, or 3.12.
pip install continuedfractions
See the project docs for more details, which includes the API reference.
Continued fractions are beautiful and interesting mathematical objects, with many connections in number theory and also very useful practical applications, including the rational approximation of real numbers.
The continuedfractions
package is designed to:
- make it easy to construct (finite) continued fractions as Python objects
- explore their key properties, such as elements/coefficients, convergents, segments, remainders, and others
- operate on them as rationals and instances of the standard library
fractions.Fraction
class
The project is licensed under the Mozilla Public License 2.0.
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
Built Distribution
Hashes for continuedfractions-0.11.33.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f61fd09ce17bcd40ffe00fa82b6852df68268df25902d6aaea80361e0054a03 |
|
MD5 | 4356608d94e49696b5253a9bbdd5deaa |
|
BLAKE2b-256 | f211190a0d36ba5d5d6d2163c41265fabd09ea3f55c99fb7891272634c8332e7 |
Hashes for continuedfractions-0.11.33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad0183e1d0f2b5eb3c26aa1771a2a30e0227ae05758a74f80f3aef5e95fb35a0 |
|
MD5 | 76aae0d82567cedd16dab9973abf3a48 |
|
BLAKE2b-256 | 74f9f21d22d73c94325e42ac0bb291fa0dc53983db0f4529c3a31e29935c1deb |