From: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
To: tomas@tuxteam.de
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: (inf) min max
Date: Tue, 28 Sep 2021 11:55:06 +0200 [thread overview]
Message-ID: <CAGua6m0Ri8ARFXniqsirw8MjF6biSWSMs1M+W+EJROvdNdx+2A@mail.gmail.com> (raw)
In-Reply-To: <20210928083156.GE14380@tuxteam.de>
[-- Attachment #1: Type: text/plain, Size: 701 bytes --]
Then this does not work well
(fold min (inf) (list 1
2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
3 4))
which is a pity, we should have an exact inf as well
On Tue, Sep 28, 2021 at 10:32 AM <tomas@tuxteam.de> wrote:
> On Tue, Sep 28, 2021 at 10:15:30AM +0200, Stefan Israelsson Tampe wrote:
> > Why is (min (inf) 1) = 1.0 inexact?
>
> Because inf's result is inexact. The same as (min 3 3.5) is inexact,
> too.
>
> It seems that the `inexactness' is contagious across arithmetic
> generics (I haven't found an explicit place in the Guile docs;
> the racket docs are more explicit about that).
>
> Cheers
> - t
>
[-- Attachment #2: Type: text/html, Size: 1080 bytes --]
next prev parent reply other threads:[~2021-09-28 9:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-28 8:15 (inf) min max Stefan Israelsson Tampe
2021-09-28 8:31 ` tomas
2021-09-28 9:55 ` Stefan Israelsson Tampe [this message]
2021-09-28 10:33 ` tomas
2021-09-28 12:00 ` Mikael Djurfeldt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGua6m0Ri8ARFXniqsirw8MjF6biSWSMs1M+W+EJROvdNdx+2A@mail.gmail.com \
--to=stefan.itampe@gmail.com \
--cc=guile-devel@gnu.org \
--cc=tomas@tuxteam.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).