PPC Journal V2N6 - TVM i% unknown on HP-65
|
10-18-2015, 07:40 PM
Post: #21
|
|||
|
|||
RE: PPC Journal V2N6 - TVM i% unknown on HP-65
(10-18-2015 01:36 PM)Dieter Wrote: This is another detail where earlier and later calculators differ. The first business oriented device, the HP80, had its five TVM keys in the order n i PMT PV FV. So did the HP22, as well as this annuity program for the HP65. Later models however used n i PV PMT FV (which seems a bit more logical). I've not seen this discussed before; you're right Dieter, it is annoying. Having learned finance Fns on the newer models (you know, those 40 years or less), I consistently mess-up when using the HP-80, HP-22 and (my recently acquired) HP-27. Though HP did stick with their standards, this is a good example of changing a standard when a better (or more logical as you say) idea comes along. --Bob Prosperi |
|||
10-18-2015, 08:11 PM
(This post was last modified: 10-19-2015 05:05 PM by Dieter.)
Post: #22
|
|||
|
|||
RE: PPC Journal V2N6 - TVM i% unknown on HP-65
(10-18-2015 08:08 AM)AndiGer Wrote: Tried just now - it works great! End mode 4 iterations, Beg mode 3. Fine. Once we get rid of the LBL A ... LBL E part there is room for some improvements. The following version quits if the relative error is below 1E–6. It also checks whether the first guess for the interest rate is exactly zero. In this case that's already the result and the program exits. This also avoids a division by i=0 in the first iteration. Code: 01 LBL 23 Start calculation I could not check this code on a real HP65, so I hope it does what it is supposed to. ;-) I also hope I got the key codes right. EDIT: the original version I posted included a loop counter but had an error. The code above is a corrected version. BTW, what does the HP65 do if the last command is not a RTN or R/S? Does it simply stop like later calculators? Or does it behave differently? In other words: if the 101st step would be a RTN, can it be omitted so that the code fits? Dieter |
|||
08-14-2016, 10:57 PM
Post: #23
|
|||
|
|||
RE: PPC Journal V2N6 - TVM i% unknown on HP-65
(10-18-2015 08:11 PM)Dieter Wrote: [quote='AndiGer' pid='44147' dateline='1445155729'] I had not seen this issue before. For the HP 35s, is there another way to clear up questions or need to adapt the HP 65 program, or maybe already exists one developed for this purpose?. I very much like to have a numerical example to evaluate the results in my HP 35s. |
|||
08-15-2016, 07:09 PM
(This post was last modified: 08-15-2016 07:12 PM by Dieter.)
Post: #24
|
|||
|
|||
RE: PPC Journal V2N6 - TVM i% unknown on HP-65
(08-14-2016 10:57 PM)PedroLeiva Wrote: I had not seen this issue before. For the HP 35s, is there another way to clear up questions or need to adapt the HP 65 program, or maybe already exists one developed for this purpose?. The 35s does not even need a program. ;-) Since it offers a solver and an equation mode, all you need is the classic TVM equation. Which can be found in the 35s manual, even with some examples: cf. chapter 17-1. (08-14-2016 10:57 PM)PedroLeiva Wrote: I very much like to have a numerical example to evaluate the results in my HP 35s. You can find some numerical examples in the first posts of this thread. And, as stated, in the 35s manual. You should also take a look at the General Software Library and search for "Accurate TVM". There are programs for various calculators where ln(1+x) and e^x–1 functions are implemented which leads to more accurate results for small interest rates. Dieter |
|||
08-15-2016, 07:43 PM
Post: #25
|
|||
|
|||
RE: PPC Journal V2N6 - TVM i% unknown on HP-65
(08-15-2016 07:09 PM)Dieter Wrote:TWVM, I will take a look of both: General Software Library and Manual(08-14-2016 10:57 PM)PedroLeiva Wrote: I had not seen this issue before. For the HP 35s, is there another way to clear up questions or need to adapt the HP 65 program, or maybe already exists one developed for this purpose?. Pedro |
|||
09-11-2017, 05:23 PM
Post: #26
|
|||
|
|||
RE: PPC Journal V2N6 - TVM i% unknown on HP-65
Sorry I get back to this old thread (some part already no more available).
The program code Dieter suggested in post #11 may work if we just omit LBL B. As I just read in Key 65 Key Note V1N1 (found on TOS) this is possible! Because if LBL B is not found the calculator will start execution at top of memory. Just to finally mention ;-) Andi |
|||
09-13-2017, 07:32 PM
(This post was last modified: 09-13-2017 08:21 PM by Dieter.)
Post: #27
|
|||
|
|||
RE: PPC Journal V2N6 - TVM i% unknown on HP-65
(09-11-2017 05:23 PM)AndiGer Wrote: The program code Dieter suggested in post #11 may work if we just omit LBL B. Wow, that's a great find! I wonder if there is any other calculator that does not throw an error if a nonexisting label is called and instead behaves this way with starting at the memory top. And indeed this seems to work. For the record, here is the complete listing (with a slight modification in the iteration's exit condition). Code: 01 RCL 1 34 01 Example (assuming flag 1 is clear): n = 5 [ A ] PMT = 500 [ C ] PV = 0 [ D ] FV = -3000 [ E ] [ B ] => i = 9,128% With flag 1 set the result is 6,140% Please also note the version in post #22. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)