[SciPy-user] Can SciPy compute ln(640320**3 + 744)/163**.5 to 30 places?
Dick Moores
rdmoores at gmail.com
Mon Jan 15 00:35:21 EST 2007
On 1/13/07, Fernando Perez <fperez.net at gmail.com> wrote:
> In [16]: import clnum as n
>
> In [17]: n.set_default_precision(50)
>
> In [18]: n.log(640320**3 + 744)/n.sqrt(163)
> Out[18]: mpf('3.141592653589793238462643383279726619347549880883522422293',55)
>
I assumed you did that in Python. So I tried it with this script,
adding a print statement:
===================================
# clnumTest1-a.py
import clnum as n
n.set_default_precision(50)
print "%.50f" % (n.log(640320**3 + 744)/n.sqrt(163))
======================================
result: 3.141592653589793100000000000000
So clarify, if you would, please.
Thanks,
Dick Moores
More information about the SciPy-User
mailing list