▼
Posts: 222
Threads: 21
Joined: Oct 2006
I recently acquired a very nice HP 17BII (Singapore 1994), and like it very much  especially now that I have functions for TRIG and Inverse TRIG!
Source: W.B. Maguire II  Improved TRIG and INVERSE TRIG functions for the HP17BII
I am not yet proficient in the use of the solver or its many interesting features that qualify it as a pseudoprogrammable calculator with the L() and G() functions (LET and GET), IF structures and Sigma functions. However, I have noticed while copying some solver equations from my HP 19BII over to the 17BII, that it does not accept the same equation syntax as the 19BII, despite what Valentin Albillo quoted in a 2003 discussion:
Quote:
The solver in this machine is exactly the same as that of the 19bii and includes all 19bii functions even if not documented, including Let and Get.
The following equation for Canadian mortgages (right out of the 19BII Owner's Manual): CAN~MORT: FV(N:((1+CI%YR/200)^(1/6)1)*1200:PV:PMT:12:0)=FV
displays a standard TVM menu: "N" "CI%YR" "PV" "PMT" "FV". Unfortunately, the 17BII will not accept this equation! If gives an error (INVALID EQUATION) at the first bracket  after FV.
Instead, I have had to use this equation from the 17BII manual:
CAN~MORT: PV=PMTxUSPV(((1+I%YR/200)^(1/6)1)x100:N)FVxSPPV(((1+I%YR/200)^(1/6)1)x100:N)
The problem with this equation (even though it works and I could rearrange the terms... but that's not the point) is the use of USPV and SPPV functions which are not needed as well as the order of the variables: "PV" "PMT" "I/YR" "N" "FV".
How can I make the 19BII equation work in the 17BII?
Thanks,
Jeff
Edited: 27 Nov 2013, 11:43 a.m.
▼
Posts: 255
Threads: 22
Joined: May 2011
Hi Jeff,
The 17Bii does not have the entire suite of solver functions available in the 19B*.
At one point I had a comparitive list of all the solver functions in the 17B*, 19B*, and 27S. However, I cannot seem to locate it at the moment. Maybe I compiled it myself from the various manuals  don't recall.
For the Canadian mortgage solver, you need to use equations presented in the 17B* manual.
As you no doubt found, the 17B* is also missing many of the 19B*'s mathematical functions as well.
▼
Posts: 222
Threads: 21
Joined: Oct 2006
Hi Neil,
Thanks for your response. I am aware of the meager subset of math functions in the 17BII. Added Trig and inverse Trig functions (although no hyperbolics) make it quite useful for an engineer.
I now understand why it cannot accept the relatively simplelooking equation for Canadian mortgages presented in the 19BII manual: while I get the lack of trigonometric functions, the 19BII solver TVM function FV(n:i%yr:pv:pmt:p/yr:m) is surprisingly absent from the 17BII list.
Bottom line is: the solvers are definitely not identiacal.
Jeff
Posts: 1,392
Threads: 142
Joined: Jun 2007
Quote:
How can I make the 19BII equation work in the 17BII?
Well, you can't, since the 17bii solver does not support the FV function (which is why the error occurs right where it did). Valentin is correct about L() and G(), but there are several 19bii solver functions that are not in the 17bii solver (including random number, unfortunately).
About all you can do is figure out exactly what the FV function does on the 19bii, and duplicate that in your equation.
Posts: 2,761
Threads: 100
Joined: Jul 2005
Quote:
I recently acquired a very nice HP 17BII (Singapore 1994), and like it very much  especially now that I have functions for TRIG and Inverse TRIG!
Source: W.B. Maguire II  Improved TRIG and INVERSE TRIG functions for the HP17BII
The following might be faster  once verified  and accurate to at least eleven digits:
IF(S(SIN):(1)^INT(X/180+0*L(X:MOD(X:180)*PI/180))*(2*SIGMA(K
:1:21:4:X^K/FACT(K))(EXP(X)EXP(X))/2)SIN:IF(S(COS):COS(
1)^INT(X/180+0*L(X:MOD(X:180)*PI/180))*(2*SIGMA(K:4:20:4:X^K/
FACT(K))+2(EXP(X)+EXP(X))/2):IF(S(TAN):TAN(0*L(X:MOD(X:180
)*PI/180)+4*SIGMA(K:1:21:4:X^K/FACT(K))EXP(X)+EXP(X))/(4*
SIGMA(K:4:20:4:X^K/FACT(K))+4EXP(X)EXP(X)):IF(S(R~D):X*180
/PIR~D:IF(S(D~R):X*PI/180D~R:IF(S(ASIN):ASIN(0*(L(B:SGN(X)
+IP(X))+L(X:ABS(X))+L(X:IF(X<>1:X/SQRT(1SQ(X)):X))+L(X:IF(X<
1:L(A:1)*X+L(Q:0):0*(L(Q:PI)+L(A:1))+INV(X)))+L(X:IF(X>SQRT(
2)1:0*L(V:PI/2)+(X1)/(X+1):X+L(V:0))))+(G(Q)+G(A)*(4*SIGMA(
K:1:29:4:X^K/K)LN((1+X)/(1X))+G(V)))*G(B)*90/PI):IF(S(ACOS)
:ACOS(0*(L(X:IF(X<>1:SQRT((1X)/(1+X)):X))+L(B:SGN(X))+L(X:
ABS(X))+L(X:IF(X<1:L(A:1)*X+L(Q:0):0*(L(Q:PI)*L(A:1))+INV(X)
))+L(X:IF(X>SQRT(2)1:0*L(V:PI/2)+(X1)/(X+1):X+L(V:0))))+(G(
Q)+G(A)*(4*SIGMA(K:1:29:4:X^K/K)LN((1+X)/(1X))+G(V)))*(3G(
B))*90/PI):ATAN(0*(L(B:SGN(X))+L(X:ABS(X))+L(X:IF(X<1:L(A:1)
*X+L(Q:0):0*(L(Q:PI)+L(A:1))+INV(X)))+L(X:IF(X>SQRT(2)1:0*L
(V:PI/2)+(X1)/(X+1):X+L(V:0))))+(G(Q)+G(A)*(4*SIGMA(K:1:29:4
:X^K/K)LN((1+X)/(1X))+G(V)))*G(B)*90/PI))))))))
Running times:
SIN: 1.8 s
COS: 1.6 s
TAN: 2.6 s
R~D: 2.0 s
D~R: 2.7 s
ASIN: 5.2 s
ACOS: 8.1 s
ATAN: 10.9 s
That's the equation in message #22 here. Still in my HP17BII, but I don't think I would key all that in if somehow it got erased from memory :)
Gerson.
▼
Posts: 222
Threads: 21
Joined: Oct 2006
Gerson,
While I do not doubt the runtimes, the mere fact that it is 48% longer (character count) than the three routines from Maguire make it unlikely I will spend an hour (or more) entering these 1145 characters to save a fraction of a second.
Great work though... ;)
Cheers,
Jeff
▼
Posts: 735
Threads: 34
Joined: May 2007
Guess how long it took me to enter the equation for the 8queens problem?
Quote:
The problem with this equation (...) is (...) the order of the variables: "PV" "PMT" "I/YR" "N" "FV".
You could probably add the following:
(N+CI%YR+PV+PMT+FV)*0+...
The variables are ordered according to their appearance in the equation. I can't check that right now but IIRC that's why I started with:
QUEENS:
Q=A+B+C+D+E+F+G+H+
(...)
Cheers
Thomas
Posts: 2,761
Threads: 100
Joined: Jul 2005
"Only" 1117 characters, considering SIGMA is onecharacter long on the HP17BII :)
These are shorter, but are not combined into a single equation.
Another SOLVER option, more akin to that on the HP19BII, is the HP200LX Solver.
Regards,
Gerson.
Posts: 222
Threads: 21
Joined: Oct 2006
Gerson,
The ATAN equation from the W.B. Maguire link executes in about 5 seconds.
Jeff
▼
Posts: 2,761
Threads: 100
Joined: Jul 2005
The delay is due to the ATAN position in the IFstructure. ATAN as an independent function would take no more than three seconds, I think.
Gerson.
Posts: 97
Threads: 1
Joined: Jun 2013
Jeff
NO argument w explanations already provided, however the TVM MENU QUESTIONS at the following URL ... http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/mostViewedDisplay/?sp4ts.oid=33540&spf_p.tpst=psiContentDisplay
&spf_p.prp_psiContentDisplay=wsrpnavigationalState%3DdocId%253Demr_
nabpia51251%257CdocLocale%253Den_US&javax.portlet.begCacheTok=
com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken
... may be useful in further TVMSolver scenarios for the 17 & 19 model business/finance calculators.
Determining if the TVM menu can be used with the Solver (HP 19bii calculator)
The TVM menu cannot be used with the Solver, but the TVM Solver
functions can be used to do the same calculations.
The TVM Functions
The five Solver TVM functions allow for equations that do
calculations analogous to the calculations done in the TVM menu:
N ( I%yr : pv : pmt : fv : p/yr : m )
I %yr ( n : pv : pmt : fv : p/yr : m )
pv ( n : i%yr : pmt : fv : p/yr : m )
PMT ( n : i%yr : pv : fv : p/yr : m )
FV ( n : i%yr : pv : pmt : p/yr : m )
Each function calculates one TVM value, given the values for all
the others. The parameters of the functions (the contents of the
parentheses) are defined identically to the builtin TVM variables
described in the following table, except that m stands for
BEGIN/END mode. Use m=1 for BEGIN mode and m=0 for END mode. For
example, the first function calculates N (the total number of
payments or compounding periods), given the annual percentage
interest rate, present value, payment amount, future value, number
of payments per year, and the BEGIN/END mode.
Give the parameters any legal variable name; for example use LOAN
in place of pv. Parameters can also be algebraic expressions. For
example, the following equation calculates the monthly payment for
a car loan:
CARPMT = PMT (MONTHS : I% YR : PRICEDOWN : 0 : 12 : 0)
Where MONTHS is the duration of the loan (in months), PRICE is the
purchase price, and DOWN is the down payment (pv = PRICEDOWN, n =
months, and the last 0 = END mode). Notice that PMT is not a
variable in the equationit is the name of the function.
The solver TVM variables are not shared with the variables in the
TVM menu. For example, the variable I%YR in the CARPMT equation is
separate from the TVM variable I%YR.
BLUF  the TVM functions are special when used in the SOLVER.
BEST!
SlideRule
Posts: 1,392
Threads: 142
Joined: Jun 2007
Jeff, why not just use the formula that is in the 17bII manual? If it works, as you say it does, and you can easily change the order of the arguments, why the objection to USPV and SPPV? I'm just curious.
▼
Posts: 222
Threads: 21
Joined: Oct 2006
Don,
That is exactly what I decided to do. I was unaware of the FV(...) function issue in the 17BII. As for USPV and SPPV, I have no objection. I just did not understand initially why they were used instead of the more logical 19BII solver functions.
Thanks,
Jeff
▼
Posts: 1,392
Threads: 142
Joined: Jun 2007
