Article View: comp.lang.forth
Article #118Re: FCONSTANT specification
From: albert
Date: Sat, 17 Oct 2026 17:32
Date: Sat, 17 Oct 2026 17:32
44 lines
2657 bytes
2657 bytes
In article <11b04lt$1vpog$1@dont-email.me>, marcel hendrix <mhx@iae.nl> wrote: >On 10/17/2026 12:55 PM, albert@spenarnc.xs4all.nl wrote: >> In article <2026Oct16.174024@mips.complang.tuwien.ac.at>, >> Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote: >>> albert@spenarnc.xs4all.nl writes: > >> 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. >I think you meant (done with xopg, mpfr, mpc): > >FORTH> LET sin(0.0001e): >.print 9.9999999833333333416666666646825396828152e-0005 ok >FORTH> S" 0.0001e" >XD XDSIN >XDFE. 9.99999998333333334166666666468253968286e-5 ok >FORTH> 0.0001e FSIN > +e. 9.9999999833333333426e-0005 ok >FORTH> LET sin(0.1001e): >.print 9.9932916564023038037792141684528699818587e-0002 ok >FORTH> S" 0.1001e" >XD XDSIN >XDFE. 9.99329165640230380377921416845286998177e-2 ok >FORTH> 0.1001e FSIN > +e. 9.9932916564023038040e-0002 ok > >... although this is most probably due to improper range reduction. Seriously? This is abc of computer science. You loose precision if you subtract numbers of equal size that cannot be exactly represented in your system. > >The target (non-AI) audience knows what they are doing, so why not >give them the best possible tools? I gave them the best possible impression. Be aware that these numbers are imprecise. > >-marcel -- 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$6e8ce49c$095955b6@eef2934caf8c38b0>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!abo003.abavia.com!feed.abavia.com!abr004.abavia.com!abp002.abavia.com!reseller!not-for-mailReferences:
<11aide4$1ibse$1@dont-email.me> <2026Oct16.174024@mips.complang.tuwien.ac.at> <nnd$394cc66f$08a48cb4@da8b86a855ca7c1b> <11b04lt$1vpog$1@dont-email.me>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.forth References: <11aide4$1ibse$1@dont-email.me> <2026Oct16.174024@mips.complang.tuwien.ac.at> <nnd$394cc66f$08a48cb4@da8b86a855ca7c1b> <11b04lt$1vpog$1@dont-email.me> 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$6e8ce49c$095955b6@eef2934caf8c38b0> Organization: www.abavia.com Date: Sat, 17 Oct 2026 19:32:05 +0200 Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!abo003.abavia.com!feed.abavia.com!abr004.abavia.com!abp002.abavia.com!reseller!not-for-mail Lines: 45 Injection-Date: Sat, 17 Oct 2026 19:32:05 +0200 Injection-Info: reseller; mail-complaints-to="abuse@abavia.com" X-Received-Bytes: 2455