[SciPy-user] Can SciPy compute ln(640320**3 + 744)/163**.5 to 30 places?

Dick Moores rdmoores at gmail.com
Sat Jan 13 12:59:51 CST 2007


On 1/13/07, Darren Dale <dd55 at cornell.edu> wrote:
> On Saturday 13 January 2007 9:39 am, Dick Moores wrote:
> > Can python compute ln(640320**3 + 744)/163**.5 to 30 places?
>
> It looks like it is good to about 16 digits:
>
> >>> '%1.32f'%(log(640320**3 + 744)/163**.5)
> '3.14159265358979311599796346854419'
>
> '3.14159265358979323846264338327950'
> 1.234567890123456^

Is that SciPy at work? If so, it's no better than plain old Python:

>>> from math import log as ln
>>> ln(640320**3 + 744)/163**.5
3.1415926535897931

But thanks,

Dick


More information about the SciPy-user mailing list