Because of the contribution of Tom Sears made on comp.sys.hp48
http://groups.google.com/group/comp.sys.hp48/browse_thread/thread/c8c609731204ffb2/8c4f5dab4ec718cf?lnk=gst&q=%22WHERE+command%22&rnum=3#8c4f5dab4ec718cf
I finally was able to emulate L() & G() on my HP49G+ ...
To test for yourself, take this example from Edition 2 of the HP17BII+ User Guide available here:
http://h10032.www1.hp.com/ctg/Manual/c00363348.pdf
On page 170 look for the description of L(x:expr):
(1+i)^N x PV +((1–(1+i)^N)/(1–(1+i))) x PMT+FV
It can be written as:
L(NP:1+i) x 0 + L(NPN:G(NP)^N) x PV + ((1-G(NPN)) / (1-G(NP))) x PMT + FV
On the HP49G+ change the last equation to:
<< 'NP x 0 + NPN x PV + ((1-NPN) / (1-NP)) x PMT + FV'
{'NPN = NP^N' 'NP = 1 + i' }
+ <<
SUBST
>>
STREAM STEQ 30 MENU
>>
Quote:
(18-Sep-2006, 9:48 GMT) Please be aware, that in { ... } order matters - "substitute" most complex first .... most simple last!
(18-Sep-2006, 16:46 GMT) Please be also aware, that the example TVM equation listed in the HP17BII+ User Guide, doesn't work the same as the Financial Solver! If you encounter differences in i then it might be due to limits in the solver. Set initial values for i to .0001 before you solve for i. Look here under Problem 2.
http://www.finseth.com/hpdata/timing.html
In my opinion, it's comparably easy to identify the respective L() & G() parts of the HP17 equation and put them into the list to be worked on by SUBST & STREAM.
Because I only tested with this readily available example, pls. comment once you have used the "algorithm" on your own HP17/19/200LX to HP49 migrations.
Best regards,
Peter A. Gebhardt
Edited: 18 Sept 2006, 12:25 p.m.