From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.108.3 with SMTP id h3mr22060759ywc.31.1456927879715; Wed, 02 Mar 2016 06:11:19 -0800 (PST) X-Received: by 10.182.125.225 with SMTP id mt1mr100106obb.17.1456927879669; Wed, 02 Mar 2016 06:11:19 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!y89no5125127qge.0!news-out.google.com!pn7ni7579igb.0!nntp.google.com!ok5no5686550igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 2 Mar 2016 06:11:19 -0800 (PST) In-Reply-To: <87twkrpvcf.fsf@adaheads.sparre-andersen.dk> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=185.30.133.97; posting-account=hya6vwoAAADTA0O27Aq3u6Su3lQKpSMz NNTP-Posting-Host: 185.30.133.97 References: <87twkrpvcf.fsf@adaheads.sparre-andersen.dk> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9974be39-f94d-4293-819e-bd1c9a1ddd65@googlegroups.com> Subject: Re: Everything You Know Is Wrong From: vincent.diemunsch@gmail.com Injection-Date: Wed, 02 Mar 2016 14:11:19 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2222 X-Received-Body-CRC: 1831708796 Xref: news.eternal-september.org comp.lang.ada:29644 Date: 2016-03-02T06:11:19-08:00 List-Id: Le lundi 29 f=E9vrier 2016 13:14:09 UTC+1, Jacob Sparre Andersen a =E9crit = : > Some of the rules which (apparently) aren't wrong yet: >=20 > http://www.cse.msu.edu/~cse320/Documents/FloatingPoint.pdf >=20 > Greetings, >=20 > Jacob Very interesting !=20 Here is the point about Ada :=20 Remarkably enough, some languages don't clearly specify that if x is a floating-point variable (with say a value of 3.0/10.0), then every occurren= ce of (say) 10.0*x must have the same value. For example Ada, which is based on Brown's model, seems to imply that floating-point arithmetic only has to satisfy Brown's axioms, and thus expressions can have one of many possible values. Thinking about floating-point in this fuzzy way stands in sharp contrast to the IEEE model, where the result of each floating-point operati= on is precisely defined. In the IEEE model, we can prove that (3.0/10.0)*10.0 evaluates to 3 (Theorem 7). In Brown's model, we cannot. Maybe this could be a topic for a new revision of Ada ? Kind regards, Vincent