Re: [Scheme-reports] Numerical example (real? -2.5+0.0i) Andre van Tonder (15 Aug 2011 20:32 UTC)
Re: [Scheme-reports] Numerical example (real? -2.5+0.0i) Aubrey Jaffer (16 Aug 2011 17:29 UTC)
Re: [Scheme-reports] Numerical example (real? -2.5+0.0i) Andre van Tonder (16 Aug 2011 20:03 UTC)
Re: [Scheme-reports] Numerical example (real? -2.5+0.0i) Aubrey Jaffer (18 Aug 2011 16:02 UTC)
Re: [Scheme-reports] Numerical example (real? -2.5+0.0i) Aubrey Jaffer (02 Oct 2011 03:03 UTC)
Re: [Scheme-reports] Numerical example (real? -2.5+0.0i) Aubrey Jaffer (03 Oct 2011 02:09 UTC)
Re: [Scheme-reports] Numerical example (real? -2.5+0.0i) Hans Aberg (05 Oct 2011 16:04 UTC)

Re: [Scheme-reports] Numerical example (real? -2.5+0.0i) Hans Aberg 05 Oct 2011 16:00 UTC

On 3 Oct 2011, at 04:08, Aubrey Jaffer wrote:

> | > Shouldn't the predicates REAL? and COMPLEX? implement the
> | > mathematical semantics for which they are named?
> |
> | ...  There are two reasonable sets of semantics here, and by
> | providing two sets of procedures we can support both.  By adding an
> | "exact-complex" feature, a program that depends on exact complex
> | numbers can rely on being run only on an implementation that
> | supports them.
>
> The terms integer, rational, real, and complex are too few to
> adequately describe all the possible numeric Scheme types.  Rather
> than misuse basic mathematical terms, coin new names for the numeric
> types which don't match the mathematical types.

In math, there are two distinct copies of the integers in play: the ring of integers Z, and the copy of it embedded into the field Q of rational numbers. A similar thing happens with real and complex numbers.

One could think of having that model in a computer program.

Hans

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports