Re: Bug in Decimal??

2014-05-15 Thread pleasedontspam
On Sunday, May 4, 2014 6:53:06 AM UTC-4, Mark Dickinson wrote: > I had a quick look: this isn't a bug - it's just the result of propagation of > > the error in "partial" to "final". > > > > In more detail: we've got a working precision of 2016 significant figures. > For > > any small x, we

Re: Bug in Decimal??

2014-04-30 Thread pleasedontspam
On Tuesday, April 29, 2014 11:39:12 PM UTC-4, Steven D'Aprano wrote: > On Tue, 29 Apr 2014 19:37:17 -0700, pleasedontspam wrote: > > > > > from decimal import * > > > getcontext().prec=2016 > > > one=Decimal(1) > > > number=Decimal(

Re: Bug in Decimal??

2014-04-30 Thread pleasedontspam
On Tuesday, April 29, 2014 11:39:12 PM UTC-4, Steven D'Aprano wrote: > On Tue, 29 Apr 2014 19:37:17 -0700, pleasedontspam wrote: > > > > > from decimal import * > > > getcontext().prec=2016 > > > one=Decimal(1) > > > number=Decimal(

Bug in Decimal??

2014-04-29 Thread pleasedontspam
Hello, I believe I found a bug in the Decimal library. The natural logarithm results seem to be off in a certain range, as compared with Wolfram Alpha. Here's an example: from decimal import * getcontext().prec=2016 one=Decimal(1) number=Decimal('1e-1007') partial=(one+number)/(one-number) fin