Natural logarithm of 2 [HP-15C/HP-42S/Free42 & others]
|
10-13-2019, 01:56 AM
(This post was last modified: 10-13-2019 04:18 PM by Albert Chan.)
Post: #11
|
|||
|
|||
RE: Natural logarithm of 2 [HP-15C/HP-42S/Free42 & others]
Here is HP-71B code to calculate log(2)
Line 10: the code actually do log(8), with guess = 2 Line 20: Y = SINH(X-2) ≈ (X-2) + (X-2)^3/3! + (X-2)^5/5! + (X-2)^7/7! Line 30: Y = EXP(2) * EXP(X-2) = EXP(X) Line 40: cubically convergent iterations for LOG(N) Code: 10 N=8 @ X=2 @ E2=EXP(2) >RUN .69313326289 .69314718056 Ref: http://rnc7.loria.fr/brent_invited.pdf, page 20 Ref: https://pdfs.semanticscholar.org/2db2/10...5e12fe.pdf |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)