So I'm using my DM42* in bigstack mode, on a very simple program which equates to 0, and using the solver on this.
It puts the calculated result in 1, but there is stuff** in 2,3 and 4. Anything I had in the stack goes on to 5 and beyond.
Two questions:
1. What's going on here?
2. Can I stop this behaviour, so it only returns the value I am interested in?
Thanks in advance!
*I just got it and it's amazing - thank you SM!
** usually another value in 2, then 0 in 3 and 4.
What's going on with the stack when using solver?
Re: What's going on with the stack when using solver?
On the HP-42S (and Free42, and DM42) the solver returns different values in the stack to help interpreting the result:
See the Solver section of the HP-42S manual for more details.
Code: Select all
Stack Contents
Register
T An integer (0-4) indicating the condition that caused
the Solver to stop.
0 = A solution has been found.
1 = A sign reversal has occurred.
2 = An extremum has been found.
3 = Bad guess(es) were used.
4 = The function may be a constant.
Z The value of the function evaluated at the solution. If an
actual root has been found, the Z-register contains a zero.
Y The previous guess.
X The solution (or the best guess if a solution was not found).
DM42: 00425 - DM41X: β00066 - WP43: 00042
Re: What's going on with the stack when using solver?
Oh thanks for that, don't know how I missed that in the manual!
KR,
Duncan
KR,
Duncan
SN:09075