Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

The Caml Hump: Contfrac


An OCaml module for performing exact arithmetic on real numbers by representing them as continued fractions. It implements the well-known algorithm described by R.W. Gosper (see reference below). The continued fractions are lazy evaluated (eventually infinite) lists. Basic arithmetic operations as well as many transcendent functions are available.
Homepage ]
Author:Thomas Baruchel.
Last modification date:31-Mar-2004
Development status:Alpha
Kind: Libraries :: Native OCaml libraries
License: Open Source :: MIT/X11
Topic: General purpose libraries :: Numeric computation