Post Reply 
Advice to buy an HP
04-19-2015, 04:38 AM
Post: #35
RE: HP-80
(04-18-2015 02:19 PM)Thomas Klemm Wrote:  
(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

Thanks, Thomas. You provided a lot of good information and the two links you referenced are worth reading for anyone interested in the HP-80 or any of the financial calculators that followed. Also, in case anyone missed it, there is a great article by Max Stone at:
http://www.hpmuseum.org/cgi-sys/cgiwrap/...?read=1263
with a lot of good stuff.

The HP-80 really did set the standard for all the financial calculators. The basic operation is pretty much incorporated in the legendary HP-12C, though with many improvements. I am still amazed at how much functionality HP managed to pack into this instrument back in 1973, with such limited ROM and RAM, and no independent financial registers.

Even though the machine has no keys for logarithms & anti-logs, there are some clever ways to get both common and natural logs using the financial keys, outlined in "Application Notes" entitled "Calculating Logs, anti-logs and roots of numbers." If anyone's interested, I can give specifics.

Also the Trend Line function is actually quite effective, if X-Values are evenly spaced, as you can only input the Y values, as the X-Values are implied as 1,2,3,etc. But once you do the compute function, you can predict a Y value for any X value, including fractional values. So there is more there than meets the eye.

Really a great, and well thought out machine !

Bob
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: 1 Guest(s)