Gosper arithmetic in Python

Subscriber123 subscriber123 at gmail.com
Mon Feb 12 20:38:58 EST 2007


By the way, there are some commented out portions of code in there which you
can just remove, if you want. The last two lines of the program are
unnecessary, as well.

On 2/12/07, Subscriber123 <subscriber123 at gmail.com> wrote:
>
> Speaking of useful home-made modules, I wrote this primitive module which
> does limited math with fractions. Anyone is welcome to expand on it or use
> it for any purpose. If anyone would like to submit it as a PEP to be added
> to the Python library of reference, that would be great. If anyone wishes to
> do that, I ask that you at least add me as a coauthor.
>
> Collin Stocks
>
> On 2/12/07, Marcin Ciura <marcin.ciura at poczta.nospamonet.pl> wrote:
> >
> > 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<http://www-zo.iinf.polsl.gliwice.pl/%7Emciura/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
> > --
> > http://mail.python.org/mailman/listinfo/python-list
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070212/3c35cb28/attachment.html>


More information about the Python-list mailing list