Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multi-precision packages: gmpy vs mxNumber

0 views
Skip to first unread message

Fernando Pérez

unread,
May 14, 2002, 8:30:15 PM5/14/02
to
Do any of the experts have any advice on the pros and cons of these two GMP
wrappers? They both seem spotty in documentation and both appear stalled in
current development.

URLS:

http://gmpy.sourceforge.net/
http://www.egenix.com/files/python/mxNumber.html

I'd like to go with the better of the two but would rather not dive into
extensive testing/comparison if someone knows of a definitive answer off
hand.

Thanks,

f.

Gerhard Häring

unread,
May 14, 2002, 9:49:44 PM5/14/02
to
Fernando Pérez wrote in comp.lang.python:

> Do any of the experts have any advice on the pros and cons of these two GMP
> wrappers? [...]

While we're at it, is there any Python extension for fixed point
arithmetic available? pyPgSQL has a fixed point type implemented in
Python, which should eventually be replaced by a C type. It would be
great if I could borrow code somewhere.

Gerhard
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))

cmkl

unread,
May 15, 2002, 6:18:48 AM5/15/02
to
Gerhard Häring <ger...@bigfoot.de> wrote in message news:<slrnae3flo....@lilith.my-fqdn.de>...

> Fernando Pérez wrote in comp.lang.python:
> > Do any of the experts have any advice on the pros and cons of these two GMP
> > wrappers? [...]
>
> While we're at it, is there any Python extension for fixed point
> arithmetic available? pyPgSQL has a fixed point type implemented in
> Python, which should eventually be replaced by a C type. It would be
> great if I could borrow code somewhere.
>
> Gerhard

Not exactly what you want, but David H. Bailey's multiprecision software
(see http://www.nersc.gov/~dhbailey/mpdist/mpdist.html) should be easily
swigable, esp. the "C/C++ and Fortran-90 quad-double and double-double
precision programs" (http://www.nersc.gov/~dhbailey/mpdist/qd.tar.gz).
See also: http://www.nersc.gov/~dhbailey/dhbpapers/arith15.pdf and
http://www.nersc.gov/~dhbailey/dhbpapers/quad-double.pdf

Carl

M.-A. Lemburg

unread,
May 15, 2002, 5:49:04 PM5/15/02
to
Fernando Pérez wrote:
> Do any of the experts have any advice on the pros and cons of these two GMP
> wrappers? They both seem spotty in documentation and both appear stalled in
> current development.

The former is still true for mxNumber, the latter is not: I'm just waiting
for GMP4 itself to settle and get a working Windows port of ready for
production use.

Please remember that mxNumber is still in the experimental stage.

My intention is to use mxNumber with a fixed point decimal type
to use in database interaction for storing mxODBC decimal column
data.

> URLS:
>
> http://gmpy.sourceforge.net/
> http://www.egenix.com/files/python/mxNumber.html
>
> I'd like to go with the better of the two but would rather not dive into
> extensive testing/comparison if someone knows of a definitive answer off
> hand.

--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting: http://www.egenix.com/
Python Software: http://www.egenix.com/files/python/

0 new messages