HP Forums
HP-42S, Need TVM Programs? - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: HP-42S, Need TVM Programs? (/thread-2833.html)



HP-42S, Need TVM Programs? - Rafael J. Diaz - 11-14-1999

Where can I get the HP-42S TMV programs from? Any web site?


Re: HP-42S, Need TVM Programs? - Andrés C. Rodríguez (Argentina) - 11-14-1999

In the HP 42S manual, chapter 12, there is an example. Otherwise you may try programming the TVM equation for the solver. The equation is: 0=PV+(1+i*b)*PMT*((1-(1+i)**(-N))/i)+FV*(1+i)**(-N) where N,i,PV,PMT and Fv are the usual TVM variables, b is 1 for begin mode, b is 0 for end mode. I used the ** symbols to denote "power", since the forum does not allow too much for formatting To clarify this, in my notation 3**2 = 9. So the **(-n) means raising the previous expression to the negative nth power.


Re: HP-42S, Need TVM Programs? - Rafael J. Diaz - 11-15-1999

Thanks for the information. Nonetheless, I remember that in one of the HP-42 programming examples, there was a listing of the TVM program. Any way I can get a copy of it?


Re: HP-42S, Need TVM Programs? - Werner - 11-25-1999

I don't know the one in the manual by heart, but this is *my* version, in my 42S:

00 { 72-Byte Prgm } 01#LBL "TVM" 02 MVAR "N" 03 MVAR "I%" 04 MVAR "PV" 05 MVAR "PMT" 06 MVAR "FV" 07 FC? 45 08 VARMENU "TVM" 09 RCL "PMT" 10 1 11 RCL "I%" 12 % 13 STO/ ST Z 14 + 15 FS? 00 16 STO* ST Y 17 RCL "N" 18 Y^X 19 RCL* "PV" 20 LASTX 21 1 22 - 23 R^ 24 * 25 + 26 RCL+ "FV" 27 END

the ^ character represents the up-arrow Flag 00 controls payments at the beginning or end of period. FC? 45 tests whether the program is run from the Solver (in which case it displays the VARMENU) or not.

Werner.