The Museum of HP Calculators

HP Forum Archive 01

[ Return to Index | Top of Index ]

HP-42S, Need TVM Programs?
Message #1 Posted by Rafael J. Diaz on 14 Nov 1999, 4:46 p.m.

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

      
Re: HP-42S, Need TVM Programs?
Message #2 Posted by Andrés C. Rodríguez on 14 Nov 1999, 6:27 p.m.,
in response to message #1 by Rafael J. Diaz

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?
Message #3 Posted by Rafael J. Diaz on 15 Nov 1999, 5:35 p.m.,
in response to message #2 by Andrés C. Rodríguez

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?
Message #4 Posted by Werner on 25 Nov 1999, 4:38 a.m.,
in response to message #3 by Rafael J. Diaz

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.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall