Sujet : Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!]
De : melahi_ahmed (at) *nospam* yahoo.fr (ahmed)
Groupes : comp.lang.forthDate : 15. Sep 2024, 13:06:52
Autres entêtes
Organisation : novaBBS
Message-ID : <5631e74e91f46765ffe32945f12b748e@www.novabbs.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
User-Agent : Rocksolid Light
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