skip to navigation
skip to content

continued 1.0

Continued fraction library

.. 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.  
File Type Py Version Uploaded on Size
continued-1.0.tar.gz (md5) Source 2010-09-24 5KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 0 downloads in the last week
  • 68 downloads in the last month