Gmpy
Carl Banks
imbosol at aerojockey.com
Thu Aug 7 19:16:11 EDT 2003
Alex Martelli wrote:
> Carl Banks wrote:
>
>> Jean-Pierre Andreaux wrote:
>>> Gmpy module was a wrapper of the GNU MP library. It seems that no
>>> evolution is done on this module since 2001. Indeed, Gmpy is not
>>> supported in Python 2.2 nor 2.3.
>>>
>>> My question is the following: what is the better replacement solution
>>> for manipulating long numbers. I want to do long numbers
>>> exponentiations. Thanks in advance for your answers.
>>
>>
>> An alternative is egenix mxNumber package, still in beta stage.
>>
>> http://www.egenix.com/files/python/mxNumber.html
>>
>> I couldn't use gmpy because I needed floating point, and mxNumber also
>> wraps the floating point functionality. It seemed to work ok.
>
> gmpy also wraps the floating-point functionality of GMP:
>
>>>> print gmpy.mpf(7,99)/3
> 2.333333333333333333333333333333333333333
I'm sorry--I was thinking of the mpz module. I remember looking at
gmpy but passed on it for some reason--probably something silly. In
any case, mxNumber worked well enough so I stuck with it.
--
CARL BANKS
"You don't run Microsoft Windows. Microsoft Windows runs you."
More information about the Python-list
mailing list