HP Forums
(12C) Convenient Financial Display Mode - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (12C) Convenient Financial Display Mode (/thread-10555.html)



(12C) Convenient Financial Display Mode - Gamo - 04-22-2018 10:21 AM

HP-34C Owner's Handbook demonstrate the program that computes and pauses to display the future value [FV] of a compound interest saving account in increments of one year according to the formula: FV = PV(1+i)^n

Since 12C already have TVM formula build-in this make programing much shorter than the 34C version.
This program is very handy when you like to see your saving grow through the incrementing years.

How to operate: f [FIN] f [REG]
Input [i] and [PV] then [R/S] the program will continue running until you press any key to stop, or until the 12C overflows.
Remark: PV must be negative according to the Cash Flow Sign Convention

Example:
Initial interest rate 6% [i]
Initial deposit of $1000 [PV]

6 > [i]
-1000 > [PV]
[R/S]
Answer: 1st year, $1060; 2nd year, $1123.60; 3rd year $1191.02; etc.

Code:

01  1
02  STO 1
03  RCL 1
04  PSE
05  [n]
06  [FV]
07  PSE   // may add more pause for longer display of FV
08  1
09  STO+1
10  GTO 03

For reference this is the program from 34C Owner's Handbook
Code:

LBL A
FIX 2
STO 0
Rv     // below this line you may add [EEX] [2] [÷] 
1
STO 1
+
STO 2
LBL 0
RCL 2
RCL 1
PSE
Y^X
RCL 0
x
PSE
1
STO+1
GTO 0

To run:
.06 ENTER 1000 CHS f A
If add EEX 2 ÷
6 ENTER 1000 CHS f A


Gamo


RE: (12C) Convenient Financial Display Mode - Dieter - 04-22-2018 11:34 AM

(04-22-2018 10:21 AM)Gamo Wrote:  HP-34C Owner's Handbook demonstrate the program that computes and pauses to display the future value [FV] of a compound interest saving account in increments of one year according to the formula: FV = PV(1+i)^n

Yes, that's a program that demonstrates a technique. It was not written for performance or efficiency. If it was, of course one would not calculate (1+i)^n in every loop but simply multiply the previous FV by (1+i).

(04-22-2018 10:21 AM)Gamo Wrote:  Since 12C already have TVM formula build-in this make programing much shorter than the 34C version.

This is even shorter: zero lines. ;-)

1,06 [ENTER] ENTER] ENTER] 1000

[x] => 1060,00
[x] => 1123,60
[x] => 1191,02
[x] => 1264,48
...

OK, the year is not displayed here.

But what is this "financial display mode" in the subject?
All I see is FIX 2. ?!?

Dieter


RE: (12C) Convenient Financial Display Mode - Gamo - 04-22-2018 12:57 PM

Convenient display mode is simply a way to display year then pause and display future value then pause. For convenience of looking year by year continuously on the display. According to the handbook.

To me this is a great way to see how initial interest add up to future value year by year. Good for observation. Smile

Gamo