* (expt 2 -inf.0) fails in 1.9.4
[not found] <64.D8.19912.FEE221D4@mx11>
@ 2010-12-23 0:54 ` Daniel Llorens
2011-01-22 23:08 ` Andy Wingo
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Llorens @ 2010-12-23 0:54 UTC (permalink / raw)
To: bug-guile
This is from git, 8aa47f2…
> (expt 2 -inf.0)
ERROR: In procedure integer-expt:
ERROR: Wrong type argument in position 2: -inf.0
These do work:
> (expt 2. -inf.0)
$1 = 0.0
> (expt 1 -inf.0)
$2 = 1
Regards,
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: (expt 2 -inf.0) fails in 1.9.4
2010-12-23 0:54 ` (expt 2 -inf.0) fails in 1.9.4 Daniel Llorens
@ 2011-01-22 23:08 ` Andy Wingo
0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2011-01-22 23:08 UTC (permalink / raw)
To: Daniel Llorens; +Cc: bug-guile
Hi Daniel,
On Thu 23 Dec 2010 01:54, Daniel Llorens <daniel.llorens@bluewin.ch> writes:
>> (expt 2 -inf.0)
> ERROR: In procedure integer-expt:
> ERROR: Wrong type argument in position 2: -inf.0
Fixed now; infinities are no longer considered to be integers.
>> (expt 1 -inf.0)
> $2 = 1
This now evaluates to 1.0.
Cheers,
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-22 23:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <64.D8.19912.FEE221D4@mx11>
2010-12-23 0:54 ` (expt 2 -inf.0) fails in 1.9.4 Daniel Llorens
2011-01-22 23:08 ` Andy Wingo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).