[PYTHON MATRIX-SIG] FW: Arbitrary precision numbers!

Tim Peters tim_one@msn.com
Sat, 15 Mar 97 05:20:47 UT


Lest it escape your number-crunching attentions, please note that Jurjen N.E. 
Bos posted a terrific "infinite precision" real-number library to 
comp.lang.python on Friday, under subject "Arbitrary precision numbers" 
(sorry, I got this off the Python mailing list, so can't supply a proper 
newsgroup reference).  I'll attach the short teaser from the start; the whole 
msg also contains a very clear "user manual" and complete & self-contained 
Python source.  

python!-it's-not-just-for-crappy-floating-point-anymore<wink>-ly y'rs  - tim

The start of Jurjen's msg:

Hi folks:
I just wrote a module "real.py" that allows to do computations with
arbitrary precision numbers. For details, see the file "real.doc" below.
Just to whet your appetite:
>>> from real import pa,exp,pi,sqrt
>>> pa('exp(pi()*sqrt(163))')
262537412640768743.99999999999925007259719818568887935385633733699086270753741
03
782106479101186073129511813461860645041930838879497538640449057287144771968148
52
322432039116478291488642282720131178317065010452226878014448417703469694633557
07
681723887681000923706539519386506362757657888558223948114276912100830886651107
28
471062346581129818301245913283610006498266592365172617883086371078645219552815
42
...

_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________