PPC Journal V2N6 - TVM i% unknown on HP-65
|
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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)