On 10/17/2026 12:55 PM, albe…@spenarnc.xs4all.nl wrote:
> In article <2026…@mips.complang.tuwien.ac.at>, > Anton Ertl <ant…@mips.complang.tuwien.ac.at> wrote:
>> albe…@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