Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Continued fraction library

Project Description

.. include:: <isogrk1.txt>


Continued is a simple library for representing and operating on numbers
represented as continued fractions.


* Conversion from a plethora of representations to continued fractions

* int
* float
* decimal.Decimal
* fractions.Fraction and numbers.Rational

* Basic arithmetic: addition, subtraction, multiplication, division
* Popular irrational and transcendental identities, to arbitrary (infinite)

* *e* (Euler's number)
* |pgr|
* |phgr| (the Golden Ratio)

* Arbitrary-precision quadratic surds



- sqrt(2) * sqrt(2) goes into an infinite loop, as does any other operation
with an arbitrary string of 0.

Some enhancements are planned.

- Surds should permit the form (a + sqrt(b))/c without an extra pair of
combination generators.
- Trigonometric operators.
- Radix-based decoding.



Initial release.

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.2 kB) Copy SHA256 Hash SHA256
Source None Sep 24, 2010

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting