Re: Decimal and Exponentiation

2006-05-20 Thread Tim Peters
[Raymond L. Buvel, on http://calcrpnpy.sourceforge.net/clnumManual.html ] >>> The clnum module handles this calculation very quickly: >>> >>> >>> from clnum import mpf >>> >>> mpf("1e1") ** mpf("3.01") >>> mpf('9.99932861e30099',26) [Tim Peters] >> That's probably good e

Re: Decimal and Exponentiation

2006-05-20 Thread Raymond L. Buvel
Tim Peters wrote: > [Raymond L. Buvel, on >http://calcrpnpy.sourceforge.net/clnumManual.html > ] > >> The clnum module handles this calculation very quickly: >> >> >>> from clnum import mpf >> >>> mpf("1e1") ** mpf("3.01") >> mpf('9.99932861e30099',26) > > > That's pr

Re: Decimal and Exponentiation

2006-05-20 Thread Tim Peters
[Raymond L. Buvel, on http://calcrpnpy.sourceforge.net/clnumManual.html ] > The clnum module handles this calculation very quickly: > > >>> from clnum import mpf > >>> mpf("1e1") ** mpf("3.01") > mpf('9.99932861e30099',26) That's probably good enough for the OP's needs

Re: Decimal and Exponentiation

2006-05-20 Thread Raymond L. Buvel
Tim Peters wrote: > The GNU GMP library (for which Python bindings are available) also > supports "big floats", but their power operation is also restricted to > integer powers and/or exact roots. This can be painful even to try; > e.g., > >>>> from gmpy import mpf >>>> mpf("1e1") *

Re: Decimal and Exponentiation

2006-05-20 Thread Raymond L. Buvel
elventear wrote: > Hi, > > I am the in the need to do some numerical calculations that involve > real numbers that are larger than what the native float can handle. > > I've tried to use Decimal, but I've found one main obstacle that I > don't know how to sort. I need to do exponentiation with re

Re: Decimal and Exponentiation

2006-05-19 Thread Dan Bishop
Tim Peters wrote: ... > Wait <0.3 wink>. Python's Decimal module intends to be a faithful > implementation of IBM's proposed standard for decimal arithmetic: > > http://www2.hursley.ibm.com/decimal/ > > Last December, ln, log10, exp, and exponentiation to non-integral > powers were added to th

Re: Decimal and Exponentiation

2006-05-19 Thread Tim Peters
[elventear] > I am the in the need to do some numerical calculations that involve > real numbers that are larger than what the native float can handle. > > I've tried to use Decimal, but I've found one main obstacle that I > don't know how to sort. I need to do exponentiation with real > exponents,

Decimal and Exponentiation

2006-05-19 Thread elventear
Hi, I am the in the need to do some numerical calculations that involve real numbers that are larger than what the native float can handle. I've tried to use Decimal, but I've found one main obstacle that I don't know how to sort. I need to do exponentiation with real exponents, but it seems that