Wrapping up SRFI-70 Aubrey Jaffer (10 Aug 2005 03:16 UTC)
Re: Wrapping up SRFI-70 Bradley Lucier (10 Aug 2005 03:31 UTC)
Re: Wrapping up SRFI-70 Per Bothner (10 Aug 2005 05:13 UTC)
Re: Wrapping up SRFI-70 Aubrey Jaffer (15 Aug 2005 02:18 UTC)
Re: Wrapping up SRFI-70 Per Bothner (15 Aug 2005 16:38 UTC)
Re: Wrapping up SRFI-70 Aubrey Jaffer (18 Aug 2005 01:58 UTC)
Re: Wrapping up SRFI-70 Per Bothner (23 Aug 2005 00:24 UTC)
Re: Wrapping up SRFI-70 bear (10 Aug 2005 05:38 UTC)
Re: Wrapping up SRFI-70 Aubrey Jaffer (15 Aug 2005 03:45 UTC)
Re: Wrapping up SRFI-70 bear (17 Aug 2005 03:06 UTC)
Re: Wrapping up SRFI-70 Paul Schlie (17 Aug 2005 14:56 UTC)
Re: Wrapping up SRFI-70 bear (17 Aug 2005 17:00 UTC)
Re: Wrapping up SRFI-70 Aubrey Jaffer (19 Aug 2005 01:26 UTC)
Re: Wrapping up SRFI-70 bear (19 Aug 2005 18:28 UTC)

Re: Wrapping up SRFI-70 Per Bothner 15 Aug 2005 16:38 UTC

Aubrey Jaffer wrote:
> I believe that the junking of 0/0 makes SRFI-70 compatible with
> IEEE-754.  Do you agree?

It's a bit awkward.  The syntax 0/0 suggests 0/0 is exact.
The 0/0 syntax is extra awkward for an implementation that
defines 1/0 and -1/0 as exact infinities, as Kawa does.

(Exact infinites are an experimental addition in Kawa  I won't claim
they're terribly well-specified or justified.  I think they can be
useful in some situation, such as sentinel values.)

I did find some discrepencies between your specification and Kawa:

#|kawa:21|# (define neg-inf (/ -1.0 0.0))
#|kawa:22|# neg-inf
#i-1/0
#|kawa:23|# (log neg-inf)
#i1/0+3.141592653589793i
#|kawa:26|# (sqrt neg-inf)
#i+1/0i

Kawa allows complex numbers with infinite components.
Whether this is "correct" or accidental I don't know.

Also I got:

#|kawa:29|# (angle inf)
0
#|kawa:30|# (angle neg-inf)
0
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/