🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #113

Re: FCONSTANT specification

#113
From: marcel hendrix
Date: Sat, 17 Oct 2026 15:36
31 lines
2537 bytes
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.

The target (non-AI) audience knows what they are doing, so why not
give them the best possible tools?

-marcel
Technical Details
Message-ID: <11b04lt$1vpog$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
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> <nnd$394cc66f$08a48cb4@da8b86a855ca7c1b>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: marcel hendrix <mhx@iae.nl>
Newsgroups: comp.lang.forth
Subject: Re: FCONSTANT specification
Date: Sat, 17 Oct 2026 17:36:28 +0200
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <11b04lt$1vpog$1@dont-email.me>
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>
 <nnd$394cc66f$08a48cb4@da8b86a855ca7c1b>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 17 Oct 2026 15:36:30 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2090768"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+q+hrjfyPwdcRlNMimYzyy/i3K9ZzLKX4="; posting-host="c962b627b92e275e7c438de4179e4c7c"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:tQtE/3wQcaJKjUBRRR23ji8NMHw= sha256:P/hR5Z02uumoaSxbTd7OudPG8htDZoitIlQ0lAPxu5M=
	sha1:ds2GynwpDROY6ccflA77ikwEAO4= sha256:miCDFS4QVA7JoYTbLXtj4Rw9Y3Yq+cMIG8faTpoFBvw=
In-Reply-To: <nnd$394cc66f$08a48cb4@da8b86a855ca7c1b>
Content-Language: en-US