[SciPy-user] Can SciPy compute ln(640320**3 + 744)/163**.5 to 30 places?
Dick Moores
rdm at rcblue.com
Sun Jan 21 22:42:40 CST 2007
At 08:01 PM 1/21/2007, you wrote:
>On 1/21/07, Dick Moores <rdm at rcblue.com> wrote:
> > Sorry, I replied to the wrong post. What I really want to see is how
> > to use clnum to do (5/23)**(2/27).
>
>The answer was already in the message you quoted:
>
> > > >In [7]: n.exp(n.log(n.mpq('5/23')*n.mpq('2/7')))
> > > >Out[7]:
> > > >mpf('0.06211180124223602484472049689440993788819875776397515527949',55)
No, think it's this:
>>>from __future__ import division
>>>(5/23)**(2/7)
0.64660732406541122
No?
Dick
More information about the SciPy-user
mailing list