Post Reply 
Natural logarithm of 2 [HP-15C/HP-42S/Free42 & others]
11-15-2019, 10:58 AM
Post: #26
RE: Natural logarithm of 2 [HP-15C/HP-42S/Free42 & others]
(11-14-2019 05:34 PM)Albert Chan Wrote:  Another way to speedup log(2) calculations is to use ... uh ... log(2) Big Grin

Let r = roughly the value of log(2)

It's not good practice to reuse a variable other than loop indices. Since r is already used for the run time, you should use some variable other than r for LOG(2).

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Natural logarithm of 2 [HP-15C/HP-42S/Free42 & others] - toml_12953 - 11-15-2019 10:58 AM



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