[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

This page is part of the web mail archives of SRFI 77 from before July 7th, 2015. The new archives for SRFI 77 contain all messages, not just those from before July 7th, 2015.

*To*: Aubrey Jaffer <agj@xxxxxxxxxxxx>*Subject*: Re: arithmetic issues*From*: Thomas Bushnell BSG <tb@xxxxxxxxxx>*Date*: Sun, 23 Oct 2005 14:12:41 -0700*Cc*: jensaxel@xxxxxxxxxxxx, srfi-77@xxxxxxxxxxxxxxxxx*Delivered-to*: srfi-77@xxxxxxxxxxxxxxxxx*In-reply-to*: <20051023205012.BFD241B77BB@xxxxxxxxxxxxxxxxxxxxx> (Aubrey Jaffer's message of "Sun, 23 Oct 2005 16:50:12 -0400 (EDT)")*References*: <20051021145326.816C11B77BB@xxxxxxxxxxxxxxxxxxxxx> <20051021155906.GC16464@NYCMJCOWA2> <Pine.LNX.4.58.0510210910130.18969@xxxxxxxxxxxxxx> <20051022011713.1F22A1B77BB@xxxxxxxxxxxxxxxxxxxxx> <87vezqmjkq.fsf@xxxxxxxxxxxxxxxxx> <20051022232548.5A2971B77BB@xxxxxxxxxxxxxxxxxxxxx> <873bmtxdnm.fsf@xxxxxxxxxxxxxxxxx> <20051023181854.4E7DD1B77BB@xxxxxxxxxxxxxxxxxxxxx> <871x2cowe8.fsf@xxxxxxxxxxxxxxxxx> <20051023195403.A50AF1B77BB@xxxxxxxxxxxxxxxxxxxxx> <435BEC21.60509@xxxxxxxxxxxx> <20051023205012.BFD241B77BB@xxxxxxxxxxxxxxxxxxxxx>*User-agent*: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Aubrey Jaffer <agj@xxxxxxxxxxxx> writes: > That is a good point. Of course you would want the written > representation to match the literal form so it works for > program-writing programs. Argggh! > > In my experience writing lots of mathematical code, the trick is not > generating NaNs, it is preventing them. Searching through my 70000 > line Scheme codebase, I find no literal NaNs or infinities. On the assumption that the literal form is rarely needed, it makes no sense to have one. An implementation might wisely provide a (nan) function that returns one, however, to at least be prettier than (/ 0. 0.). If NaNs carry around extra origin-marking information too, the (nan) function would be handy for that as well. Thomas

**References**:**arithmetic issues***From:*Aubrey Jaffer

**Re: arithmetic issues***From:*John.Cowan

**Re: arithmetic issues***From:*bear

**Re: arithmetic issues***From:*Aubrey Jaffer

**Re: arithmetic issues***From:*Thomas Bushnell BSG

**Re: arithmetic issues***From:*Aubrey Jaffer

**Re: arithmetic issues***From:*Thomas Bushnell BSG

**Re: arithmetic issues***From:*Aubrey Jaffer

**Re: arithmetic issues***From:*Thomas Bushnell BSG

**Re: arithmetic issues***From:*Aubrey Jaffer

**Re: arithmetic issues***From:*Jens Axel Søgaard

**Re: arithmetic issues***From:*Aubrey Jaffer

- Prev by Date:
**Re: arithmetic issues** - Next by Date:
**Re: arithmetic issues** - Previous by thread:
**Re: arithmetic issues** - Next by thread:
**Re: arithmetic issues** - Index(es):