Programming the HP12C (an example)
Find the solution to the equation:
3000
NPV(i0) = 0 = -20 000 - 10 000v + 6000v13 + (v3-v13)
ln(1+i)
Given an initial estimate v, we all know how to evaluate the equation above (i.e. which sequence of
HP12C keystrokes to use). A programme is just that same sequence of keystrokes we would use to
manually evaluate the equation saved so that, given an initial estimate of v, we can recall the valid
keystrokes and automatically and quickly evaluate the equation.
So instead of entering the same sequence of keystrokes multiple times when evaluating multiple
estimates of v, we save time by programming them once.
Steps for the above equation
Keys Explanation Calculator display
0.000000000
f P/R Enters prog mode 00-
f PRGM Clears previous programmes 00-
STO 0 Stores initial estimate of v into register 0 01- 44 0
20000 CHS Enter Enters first CF of -20 000 08- 36
10000 RCL 0 × - Subtracts 10 000v from -20 000 16- 30
6000 RCL 0 13 y x × + Adds 6000v13 26- 40
RCL 0 3 y x RCL 0 13 y x - Inputs v3 – v13 34- 30
RCL 0 1/x g LN Gives ln v-1 = ln(1+i) 37- 43 23
÷ Gives + (v3-v13)/ln(1+i) 38- 10
3000 × Multiplies above by 3000 43- 20
+ Adds this to previous total 44- 40
f P/R Exits prog mode 0.000000000
Enter (1.021)-1 = v1 into calculator and press R/S button. The calculator should flash ‘running’ and
gives 235.68242
(1.022)-1 = v2 gives -6.8062
Need to use interpolation to get more accurate answer.