Post Reply 
[VA] SRC #012c - Then and Now: Sum
12-04-2022, 08:44 PM
Post: #37
RE: [VA] SRC #012c - Then and Now: Sum
Interesting improvement to the HP41 result:

At least on the emulator, the accuracy of ln is not good enough to calculate the number of digits in the straight forward fashion of ln(x)/ln(2). For example, for 16, this results in 3.9999999999, rather than 4.

Adding an ulp to it before taking the int fixes the problem, after which my code delivers the expected 2.086377665.

Cheers,

PeterP
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [VA] SRC #012c - Then and Now: Sum - PeterP - 12-04-2022 08:44 PM



User(s) browsing this thread: 1 Guest(s)