Deutsch   English   Français   Italiano  
<5631e74e91f46765ffe32945f12b748e@www.novabbs.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: melahi_ahmed@yahoo.fr (ahmed)
Newsgroups: comp.lang.forth
Subject: Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!]
Date: Sun, 15 Sep 2024 12:06:52 +0000
Organization: novaBBS
Message-ID: <5631e74e91f46765ffe32945f12b748e@www.novabbs.com>
References: <nnd$61e0ad9a$48ed61c2@b4d945e456041481> <vasqjd$icjm$1@dont-email.me> <66d26c4b$1@news.ausics.net> <vaubf7$tbke$1@dont-email.me> <nnd$04cff141$0193ba04@301336b8dd8ed69a> <vbfqnd$v4c4$1@dont-email.me> <nnd$26b4d59b$27bdb181@ce638e508b04426e> <87bk0vbvgk.fsf@nightsong.com> <66e0fa58$1@news.ausics.net> <66e11d64$1@news.ausics.net> <877cbh4b6z.fsf@nightsong.com> <66e2a497$1@news.ausics.net> <2024Sep14.143207@mips.complang.tuwien.ac.at> <e29088cacf765cd0da6519e333fa78f1@www.novabbs.com> <2024Sep14.170836@mips.complang.tuwien.ac.at> <06f3574dfa63a100a731c944d8e16473@www.novabbs.com> <66e69759$1@news.ausics.net> <2407b32e4980726ab60611863c3d485e@www.novabbs.com> <19ef9c8626b9a9374535476f9073ad03@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
	logging-data="2146937"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="fh2jRJ/PGtIlZMySaIjc6gsLWP80WZpB2lZYFC5wgKI";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: a55529988cdb6fa7b5e36631aef8884238b8448a
X-Rslight-Site: $2y$10$kCji7A.MCLu8a4/O.RRq.u.JR0c/lsJvoxfv7/1udTF6SUrMetKCG
X-Spam-Checker-Version: SpamAssassin 4.0.0
Bytes: 2257
Lines: 19

On Sun, 15 Sep 2024 9:58:23 +0000, mhx wrote:

> This unearthed a "bug": -1e309 does not fit in a dfloat,
> it prints as -Inf.

In practice, the universe of discourse of x is bounded [xmin, xmax].
I use normalized univers of discours [-1, 1].
So to get neg_big I just use a big value (absolute value) for the
parameter a (for example: -1e6)

-1e6 -1e 0e  tri_mf: neg_big
-1e   0e 1e6 tri_mf: pos_big

and this gives: x is between -2e and 2e for example
    neg_big(x) equals approximately 1 for all x less than -1.
    pos_big(x) equals approximately 1 for all x greater than 1.

So I don't use 1e309 or -1e309.

Ahmed