hmmm.. imagine 3 cell zen float:
2 cells with double number, 1 cell with exponent, the dynamic range
+/- 2.147483648E+/-9863
We may count all Higgs bosons in 10^119 multiverses (assuming the
other universes are the same size as ours is) (:-))). Pito
> zenfloat uses 2 cells for a float number:
> fi
zenfloat uses 2 cells for a float number:
first - mantissa
second - exponent
so the math is done much easier than the ieee one (Leon does).
To get the Leon's precision (23 bit mantissa) we need 3 cells with
the zen however: (2 cells mantissa 1 cell exponent), if even doable
with the zen libs..
Pito
.. the zen float seems to be a different format than Leon's float.
Not sure zenfloat is IEEE 754 like stuff.. P.
- PŮVODNÍ ZPRÁVA -
Od: "Matthias Trute"
Komu: "Everything around amforth"
Předmět: Re: [Amforth-devel] Float testing - simple integration
Datum:
Matthias,
I've downloaded ~8MB of the 4th stuff 2m ago. But, as I wrote, these
sources (and a tons of others) need a case insensitive amforth (e.g.
see fpout.4th)..
Pito
>
> just a side note: I was just pointed to a forth
> source library named
> "zen float" (e.g. 4th) that could be useful as
> w
Hi,
just a side note: I was just pointed to a forth source library named
"zen float" (e.g. 4th) that could be useful as well. At least to not do
all the work again.
I highly appreciate your work, Leon (and Pito)
Matthias
Hi, here is a very simple integration (no special method applied)
for testing f+ and f*.
It integrates y=x^3 from A to B. Currently A=-B (e.g. -1 to +1) thus
the result shall be zero. Still thinking on N in the loop (:-)).
Pito
-
marker -testadd
\ very simple integration t