Gosper arithmetic in Python

Discussion in 'Python' started by Marcin Ciura, Feb 12, 2007.

  1. Marcin Ciura

    Marcin Ciura Guest

    Hello,

    I hacked together a module implementing exact real
    arithmetic via lazily evaluated continued fractions.
    You can download it from
    http://www-zo.iinf.polsl.gliwice.pl/~mciura/software/cf.py
    an use as an almost drop-in replacement for the math module
    if you don't care too much about performance.
    I'd be happy to hear any feedback and suggestions.

    Cheers,
    Marcin
    Marcin Ciura, Feb 12, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dan Stromberg
    Replies:
    2
    Views:
    471
    Michael Spencer
    Jan 22, 2005
  2. Gregory Petrosyan

    Arithmetic sequences in Python

    Gregory Petrosyan, Jan 16, 2006, in forum: Python
    Replies:
    73
    Views:
    3,913
    Bengt Richter
    Jan 24, 2006
  3. Steven Bethard
    Replies:
    7
    Views:
    387
    Rocco Moretti
    Jan 20, 2006
  4. joshc
    Replies:
    5
    Views:
    539
    Keith Thompson
    Mar 31, 2005
  5. david mainzer

    Python -- floating point arithmetic

    david mainzer, Jul 7, 2010, in forum: Python
    Replies:
    3
    Views:
    720
    David Mainzer
    Jul 8, 2010
Loading...

Share This Page