[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: (expt 2 (log 0)) hangs

**From**: |
Kevin Ryde |

**Subject**: |
Re: (expt 2 (log 0)) hangs |

**Date**: |
Tue, 07 Sep 2004 10:11:53 +1000 |

**User-agent**: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |

Bill Schottstaedt <address@hidden> writes:
>
>* > (expt 2 (log 0))*
>
>* gets into an infinite loop.*
No, not infinite, it's calculating 2^(2^1024), you just have to be
patient, and have a lot of ram :-).
Thanks. I fixed integer-expt to reject an exponent +/-inf. It got
there because (integer? -inf.0) => #t, which seems pretty wrong to me,
so I changed that to #f. That expt now goes to pow(), giving 0.