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

Darren Dale dd55 at cornell.edu
Mon Jan 15 11:19:58 CST 2007


On Monday 15 January 2007 11:52, Dick Moores wrote:
> That's great! Thanks!
>
> Now, how about something such as (5/23)**(2/7)?
> print repr(n.exp(n.log(5/23)*2/7))
> gets ValueError: log domain error

integer division 5/23=0. The log of zero is either going to give you -infinity 
or an error.

Darren


More information about the SciPy-user mailing list