Post Reply 
Advice to buy an HP
04-18-2015, 02:19 PM (This post was last modified: 04-08-2022 06:10 PM by Thomas Klemm.)
Post: #34
RE: Advice to buy an HP
(04-16-2015 10:04 PM)bshoring Wrote:  I believe for solving for i (interest rate) which must use Newton's Method, the single storage register is also used.

The algorithm used to calculate i when n, PMT and PV are given can be found in APPENDIX A of A Pocket-Sized Answer Machine for Business and Finance.

Quote:For a variety of reasons the best technique to try is the Newton-Raphson one and this was used for the annuity functions.

There's also flow chart in Fig. 3 but the initial value i0 has a typo: the number 2 should be in the numerator:
\[i_0 = \frac{2(n-P)}{n(n+1)}\]

A similar flow-chart can be found in Fig. 32 of United States Patent 3863060 on page 25 where it is correct.

I was wondering how they arrived at that initial guess:
Quote:First we sum the first three terms of the binomial expansion for f(i) and solve for i.

It turns out they just used the Taylor series as can be seen using Wolfram|Alpha:

Series[P-(1-(1 + r)^(-n))/r, {r, 0, 1}]

\((P-n)+\frac{1}{2}n(n+1)r+O(r^2)\)

Solve[(P-n)+1/2 n (n+1) r, r]

\(r=\frac{2n-2P}{n^2+n}\) and \(n(n+1)\neq0\)

Cheers
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Advice to buy an HP - Cancuino - 04-15-2015, 09:25 PM
RE: Advice to buy an HP - d b - 04-15-2015, 10:23 PM
RE: Advice to buy an HP - Cancuino - 04-15-2015, 10:36 PM
RE: Advice to buy an HP - walter b - 04-16-2015, 07:42 AM
RE: Advice to buy an HP - Cancuino - 04-16-2015, 08:01 AM
RE: Advice to buy an HP - Les Bell - 04-16-2015, 11:47 PM
RE: Advice to buy an HP - Les Bell - 04-17-2015, 01:33 AM
RE: Advice to buy an HP - RayAtHP - 04-15-2015, 10:37 PM
RE: Advice to buy an HP - Jlouis - 04-15-2015, 11:08 PM
RE: Advice to buy an HP - Cancuino - 04-15-2015, 11:14 PM
RE: Advice to buy an HP - Jlouis - 04-15-2015, 11:39 PM
RE: Advice to buy an HP - d b - 04-16-2015, 12:53 AM
RE: Advice to buy an HP - TASP - 04-16-2015, 01:18 AM
RE: Advice to buy an HP - bshoring - 04-16-2015, 07:25 AM
RE: Advice to buy an HP - TASP - 04-16-2015, 01:21 PM
RE: Advice to buy an HP - Don Shepherd - 04-16-2015, 01:57 PM
HP-80 - bshoring - 04-16-2015, 10:04 PM
RE: Advice to buy an HP - TASP - 04-17-2015, 05:09 PM
RE: Advice to buy an HP - Omar Deen - 04-16-2015, 03:37 AM
RE: Advice to buy an HP - Sukiari - 04-16-2015, 05:03 AM
RE: Advice to buy an HP - Tugdual - 04-16-2015, 06:24 AM
RE: Advice to buy an HP - Dave Britten - 04-16-2015, 02:23 PM
RE: Advice to buy an HP - TASP - 04-16-2015, 02:29 PM
RE: Advice to buy an HP - jebem - 04-16-2015, 05:11 PM
RE: Advice to buy an HP - Gerald H - 04-16-2015, 06:01 PM
RE: Advice to buy an HP - jebem - 04-17-2015, 08:41 AM
RE: Advice to buy an HP - Cancuino - 04-16-2015, 09:54 PM
RE: Advice to buy an HP - Jlouis - 04-16-2015, 11:28 PM
RE: Advice to buy an HP - Cancuino - 04-16-2015, 11:39 PM
RE: Advice to buy an HP - MarkMason - 04-17-2015, 01:56 AM
RE: Advice to buy an HP - Marcio - 04-17-2015, 02:13 AM
RE: Advice to buy an HP - Michael Lopez - 04-17-2015, 09:42 AM
RE: Advice to buy an HP - Cancuino - 04-17-2015, 02:00 PM
RE: Advice to buy an HP - Thomas Klemm - 04-18-2015 02:19 PM
RE: HP-80 - bshoring - 04-19-2015, 04:38 AM
RE: HP-80 - Thomas Klemm - 04-19-2015, 05:18 AM
RE: Advice to buy an HP - Cancuino - 04-19-2015, 09:11 PM
RE: Advice to buy an HP - jebem - 04-19-2015, 09:24 PM
RE: Advice to buy an HP - rprosperi - 04-19-2015, 09:25 PM
RE: Advice to buy an HP - Steve Simpkin - 04-19-2015, 09:34 PM
RE: HP-80 - bshoring - 04-19-2015, 09:15 PM
RE: HP-80 - Thomas Klemm - 04-19-2015, 09:34 PM
RE: Advice to buy an HP - Cancuino - 04-19-2015, 09:37 PM
RE: Advice to buy an HP - rprosperi - 04-19-2015, 10:22 PM
RE: Advice to buy an HP - Jlouis - 04-19-2015, 11:57 PM
RE: Advice to buy an HP - Marcio - 04-20-2015, 12:16 AM
RE: Advice to buy an HP - Cancuino - 04-21-2015, 02:42 PM
RE: Advice to buy an HP - Marcio - 04-21-2015, 02:55 PM
RE: Advice to buy an HP - Thomas Ritschel - 04-21-2015, 04:34 PM
RE: Advice to buy an HP - Cancuino - 04-21-2015, 05:03 PM
RE: Advice to buy an HP - Cancuino - 04-21-2015, 04:27 PM
RE: Advice to buy an HP - Marcio - 04-21-2015, 04:35 PM
RE: Advice to buy an HP - Cancuino - 04-21-2015, 04:59 PM
RE: Advice to buy an HP - Marcio - 04-21-2015, 05:19 PM
RE: Advice to buy an HP - Tugdual - 04-21-2015, 05:26 PM
RE: Advice to buy an HP - Marcio - 04-21-2015, 05:53 PM
RE: Advice to buy an HP - Cancuino - 04-21-2015, 06:16 PM
RE: Advice to buy an HP - Marcio - 04-21-2015, 06:27 PM
RE: Advice to buy an HP - Cancuino - 04-21-2015, 05:19 PM
RE: Advice to buy an HP - Sukiari - 04-21-2015, 05:43 PM
RE: Advice to buy an HP - Cancuino - 04-21-2015, 06:13 PM
RE: Advice to buy an HP - Cancuino - 04-23-2015, 01:34 PM
RE: Advice to buy an HP - Maro - 04-23-2015, 02:02 PM
RE: Advice to buy an HP - Cancuino - 04-23-2015, 02:04 PM
RE: Advice to buy an HP - Helix - 04-23-2015, 02:16 PM
RE: Advice to buy an HP - Cancuino - 04-23-2015, 02:18 PM
RE: Advice to buy an HP - Cancuino - 04-25-2015, 03:18 PM
RE: Advice to buy an HP - Helix - 04-26-2015, 11:59 PM
RE: Advice to buy an HP - Cancuino - 04-30-2015, 09:06 AM
RE: Advice to buy an HP - rprosperi - 04-30-2015, 01:29 PM



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