Natural logarithm of 2 [HP-15C/HP-42S/Free42 & others]
|
11-14-2019, 12:04 AM
Post: #21
|
|||
|
|||
RE: Natural logarithm of 2 [HP-15C/HP-42S/Free42 & others]
(11-11-2019 06:14 PM)Gerson W. Barbosa Wrote: n = 1663 will be enough for 1000 digits: It may be better to make n even, avoiding 1 square root: \(\Large \frac{\pi}{\log 2}\normalsize ≈ AGM(2n, \frac{2n}{2^{n-2}}) = AGM(n + \frac{n}{2^{n-2}}, \frac{2n}{2^{n/2-1}}) \) With n=1662, loop count down to 17. Code: OPTION ARITHMETIC DECIMAL_HIGH |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)