[Oberon] An alternative for the present inaccurate Math.ln(x)
Chris Burrows
cfbsoftware at gmail.com
Sun May 26 13:42:45 CEST 2024
On Sun, May 26, 2024 at 4:58 PM <oberon-eth at email.cz> wrote:
> This procedure is using REAL type which is now 64-bit (double precision).
> But constants c3,c4,c5 have only 8 fractional digits (old single precision
> REAL type?)
> What are these constants and how to make them having more digits to get
> double precision?
>
> Zdenek
>
> The procedure quoted is intended for use in Project Oberon where the REAL
/ LONGREAL type is 32-bit.
A similar procedure was implemented using 64-bit LONGREALs in ETH Native
Oberon System3. The source code can be downloaded from here:
https://github.com/rsdoiel/NativeOberon/blob/main/MathL.Mod.txt
The use of hexadecimal numbers for the constants circumvents rounding
issues that might occur when different compilers convert them from text to
binary.
--
Regards,
Chris Burrows
CFB Software
http://www.astrobe.com/RISC5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20240526/b18b4e1f/attachment.html>
More information about the Oberon
mailing list