Natural logarithm of 2 [HP-15C/HP-42S/Free42 & others]
|
11-17-2019, 03:01 PM
Post: #27
|
|||
|
|||
RE: Natural logarithm of 2 [HP-15C/HP-42S/Free42 & others]
(11-15-2019 10:58 AM)toml_12953 Wrote: It's not good practice to reuse a variable other than loop indices. This faster version renamed variable r as g. To speedup exp(-g): exp(-g) = exp(-g/n) ^ n, where n = 2^24 This reduce exp() loop count from 212 down to 55. Code: OPTION ARITHMETIC DECIMAL_HIGH |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)