Article View: comp.lang.forth
Article #107Re: FCONSTANT specification
From: albert
Date: Sat, 17 Oct 2026 10:55
Date: Sat, 17 Oct 2026 10:55
60 lines
2995 bytes
2995 bytes
In article <2026Oct16.174024@mips.complang.tuwien.ac.at>, Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote: >albert@spenarnc.xs4all.nl writes: >>A fp number represents a rational range, it nominal value plus or minus >>half an ulp. > >What makes you think that the result of > >3 s>f > >or > >s" 3e" >float drop > >represents a range? This value can be represented exactly as FP >value, there is no rounding happening in this conversion. > >And why should it represent the range > >2.9999999999999997779553950749686919152736663818359375e to >3.0000000000000002220446049250313080847263336181640625e > >in particular? > >Further, when we perform > >6 s>f 3 s>f f- > >why should the results of the individual conversions (none of which >performs rounding) represent ranges? Why should the result of the >subtraction (which does not perform any rounding, either, and does not >set the "inexact" flag in the FPU) represent a range. > >But even if we assume that the results of the conversions are ranges, >why should the result of the subtraction be the interval above, >instead of the interval that interval arithmetic would give, which is >a range that is 3 times bigger in this case (2 times, because the >interval you claim for 6 is twice as big as that for 3, and 1 time due >to the interval of 3). > >As mentioned, thinking about FP numbers as "imprecise" or intervals >etc. leads you down the path to wrong conclusions. > >A better way to think about them is: Each FP number has an exact >value, but in some cases conversions to FP and FP operations round, >because there is no FP value for the exact result; this rounding leads >to errors. The size of this error is the subject of numerical >analysis. Exactly 0.0001E0 DUP FSIN F- looses a whole lot of precision. Maybe "imprecise numbers" is not a bad name after all. I aim for psychological impact. >- anton -- The Chinese government is satisfied with its military superiority over USA. The next 5 year plan has as primary goal to advance life expectancy over 80 years, like Western Europe.
Technical Details
Message-ID:
<nnd$394cc66f$08a48cb4@da8b86a855ca7c1b>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!abo004.abavia.com!feed.abavia.com!abr003.abavia.com!abp001.abavia.com!reseller!not-for-mailReferences:
<11aide4$1ibse$1@dont-email.me> <2026Oct15.075508@mips.complang.tuwien.ac.at> <nnd$259bc6d7$095e6dc6@c0b8c58c46e9a352> <2026Oct16.174024@mips.complang.tuwien.ac.at>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.forth References: <11aide4$1ibse$1@dont-email.me> <2026Oct15.075508@mips.complang.tuwien.ac.at> <nnd$259bc6d7$095e6dc6@c0b8c58c46e9a352> <2026Oct16.174024@mips.complang.tuwien.ac.at> From: albert@spenarnc.xs4all.nl Subject: Re: FCONSTANT specification X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: albert@cherry.(none) (albert) Message-ID: <nnd$394cc66f$08a48cb4@da8b86a855ca7c1b> Organization: www.abavia.com Date: Sat, 17 Oct 2026 12:55:16 +0200 Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!abo004.abavia.com!feed.abavia.com!abr003.abavia.com!abp001.abavia.com!reseller!not-for-mail Lines: 61 Injection-Date: Sat, 17 Oct 2026 12:55:16 +0200 Injection-Info: reseller; mail-complaints-to="abuse@abavia.com"