Object-oriented continued fractions with Python.
Project description
continuedfractions
A simple extension of the Python fractions.Fraction standard library class for working with (finite, simple) continued fractions as Python objects.
Install from PyPI:
pip install -U continuedfractions
or the main branch of this repo:
pip install -U git+https://github.com/sr-murthy/continuedfractions
The documentation now consists only of an API reference. All other previous documentation has been removed to reduce maintenance.
The continuedfractions package is aimed at users interested in:
- working with (finite, simple) continued fractions as Python objects, in an intuitive object-oriented way
- making stateful computations involving key properties such as elements/coefficients, convergents, semiconvergents, remainders, and others
- operating on them as rationals and instances of the
fractions.Fractionstandard library class - testing approximations for irrational numbers
- exploring other related objects such as rational points in the plane, enumerations of rational numbers, mediants, and special sequences of rational numbers such as Farey sequences
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
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 continuedfractions-1.11.0.tar.gz.
File metadata
- Download URL: continuedfractions-1.11.0.tar.gz
- Upload date:
- Size: 59.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a0225e25fed3dbd24140934565f7cd40bfab23c2638a40468ab0627107958ec
|
|
| MD5 |
ec4a6f7bf24e675b6368bc56c99a83e4
|
|
| BLAKE2b-256 |
73b7846c44faaae38088abed92b75460d54aca3ed3c0aa308f3eadec57e9adeb
|
File details
Details for the file continuedfractions-1.11.0-py3-none-any.whl.
File metadata
- Download URL: continuedfractions-1.11.0-py3-none-any.whl
- Upload date:
- Size: 61.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51c10844b052268cb6e02337b3c44a0aafde728cb2120f78a210260f6a6096e8
|
|
| MD5 |
c294bfe0c3720aa869b5a50de1fdfbb6
|
|
| BLAKE2b-256 |
c47b0e33b548c15ec4637a39c28c336e4fc90bfa122ee3585287cda3a28a8f02
|