Skip to main content

Object-oriented continued fractions with Python.

Project description

CI CodeQL Analysis Codecov Ruff pdm-managed License: MPL 2.0 Docs PyPI version Downloads

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.Fraction standard 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

continuedfractions-1.11.0.tar.gz (59.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

continuedfractions-1.11.0-py3-none-any.whl (61.4 kB view details)

Uploaded Python 3

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

Hashes for continuedfractions-1.11.0.tar.gz
Algorithm Hash digest
SHA256 8a0225e25fed3dbd24140934565f7cd40bfab23c2638a40468ab0627107958ec
MD5 ec4a6f7bf24e675b6368bc56c99a83e4
BLAKE2b-256 73b7846c44faaae38088abed92b75460d54aca3ed3c0aa308f3eadec57e9adeb

See more details on using hashes here.

File details

Details for the file continuedfractions-1.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for continuedfractions-1.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51c10844b052268cb6e02337b3c44a0aafde728cb2120f78a210260f6a6096e8
MD5 c294bfe0c3720aa869b5a50de1fdfbb6
BLAKE2b-256 c47b0e33b548c15ec4637a39c28c336e4fc90bfa122ee3585287cda3a28a8f02

See more details on using hashes here.

Supported by

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