Post Reply 
Natural logarithm of 2 [HP-15C/HP-42S/Free42 & others]
06-19-2022, 02:10 PM
Post: #35
RE: Natural logarithm of 2 [HP-15C/HP-42S/Free42 & others]
This program for the HP-42S uses formula (19):

\(
\begin{align}
\ln 2= \sum_{k=1}^{\infty} \frac{1}{k \cdot 2^k}
\end{align}
\)

Code:
00 { 14-Byte Prgm }
01 0
02▸LBL 00
03 RCL ST Y
04 1/X
05 +
06 2
07 ÷
08 DSE ST Y
09 GTO 00
10 END

37
R/S

0.693147180559758517350355291780403
0.6931471805599453094172321214581766


105
R/S

0.6931471805599453094172321214581765
0.6931471805599453094172321214581766


I have no idea how long it takes on a real HP-42S.
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] - Thomas Klemm - 06-19-2022 02:10 PM



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