Solving the TVM equation for the interest rate
04-15-2018, 08:39 AM
Post: #1
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
Solving the TVM equation for the interest rate
Looking at the recent contributions to the General Software Library made me once again think about solving the classic TVM equation for the interest rate. Since there is no closed solution an iterative method is required, for instance the classic Newton method. This requires an initial guess for the interest rate, and I wonder if there is some kind of "best practice" to do so.

Some time ago this has been discussed in the old forum. Maybe you want to take a look at this thread. But maybe we don't have to reinvent the wheel: I wonder how the algorithms in existing financial calculators do it. So if anyone has some insights on this please let the world know.

Then I have been looking at various programs for programmable calculators:

- The TVM program in the HP41 Standard Pac starts with + or – 1E–9.

- The Advantage ROM seems to simply take 1/n as the initial guess (please correct me if I'm wrong here). This seems to work surprisingly well. The guess may be far from the final result, but it converges well from there. At least in the examples I tried and for i>0.

- The TI58/59 Master Library program (ML-19) takes a slightly different approach (it distinguishes between PV and FV problems) and starts with dedicated guesses, for instance with FV/PMT – PMT/(FV·n²) for PV=0.

- I remember I saw a flowchart of the HP80 algorithm somewhere in an old HP Journal. Maybe this has some information on how the HP80 did it.

- The 12C... no idea. I just tried this on the "official" HP 12C emulator:

CLEAR FIN

10 [n]
–1000 [PMT]
10000 [FV]

[i] returns exactly 0, as expected.

Change FV:
15000 [FV]
[i] yields 8,732%

Change FV back to the previous value:
10000 [FV]
[i] now returns 4,334 E–11%

OK, this is sufficiently close to zero, but why does this return a different result than before where it was exactly zero?

12000 [FV]
[i] => 3,989%

10000 [FV]
[i] => 2,146 E–11%

10000 [FV]
[i] => 0%

So the result seems to depend on previous input ?!

All in all:

- What formulas would you suggest to set an initial guess for calculating the interest rate?
- What is going on in the 12C (see above)?

Dieter
 « Next Oldest | Next Newest »

 Messages In This Thread Solving the TVM equation for the interest rate - Dieter - 04-15-2018 08:39 AM RE: Solving the TVM equation for the interest rate - Gamo - 04-15-2018, 10:46 AM RE: Solving the TVM equation for the interest rate - Dieter - 04-15-2018, 02:55 PM RE: Solving the TVM equation for the interest rate - Ángel Martin - 04-15-2018, 04:37 PM RE: Solving the TVM equation for the interest rate - ttw - 04-16-2018, 05:00 AM RE: Solving the TVM equation for the interest rate - Carsen - 04-15-2018, 05:30 PM RE: Solving the TVM equation for the interest rate - Dieter - 04-15-2018, 06:08 PM RE: Solving the TVM equation for the interest rate - Csaba Tizedes - 02-17-2020, 10:30 AM RE: Solving the TVM equation for the interest rate - Carsen - 04-15-2018, 08:48 PM RE: Solving the TVM equation for the interest rate - Dieter - 04-15-2018, 09:38 PM RE: Solving the TVM equation for the interest rate - Dieter - 04-16-2018, 06:34 PM RE: Solving the TVM equation for the interest rate - Jeff_Kearns - 04-19-2018, 02:56 PM RE: Solving the TVM equation for the interest rate - Dieter - 04-19-2018, 09:45 PM RE: Solving the TVM equation for the interest rate - Erwin - 02-13-2020, 06:00 AM RE: Solving the TVM equation for the interest rate - Albert Chan - 12-05-2020, 04:31 PM RE: Solving the TVM equation for the interest rate - AndiGer - 04-16-2018, 03:44 AM RE: Solving the TVM equation for the interest rate - Gamo - 04-17-2018, 08:59 AM RE: Solving the TVM equation for the interest rate - Dieter - 04-17-2018, 06:50 PM RE: Solving the TVM equation for the interest rate - Gamo - 02-12-2020, 10:50 AM RE: Solving the TVM equation for the interest rate - Albert Chan - 02-12-2020, 12:31 PM RE: Solving the TVM equation for the interest rate - ttw - 02-12-2020, 03:41 PM RE: Solving the TVM equation for the interest rate - Albert Chan - 02-12-2020, 05:25 PM RE: Solving the TVM equation for the interest rate - ttw - 02-12-2020, 09:37 PM RE: Solving the TVM equation for the interest rate - Albert Chan - 02-12-2020, 11:40 PM RE: Solving the TVM equation for the interest rate - ttw - 02-12-2020, 09:54 PM RE: Solving the TVM equation for the interest rate - Gamo - 02-13-2020, 06:30 AM RE: Solving the TVM equation for the interest rate - Gamo - 02-13-2020, 10:42 AM

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