When trying to solve the equation ln(abs(cos(x)))=-2 suddenly the solver starts to produce “Not a number”.
Executing exactly the same programme with the solver on my old HP42s produced (one of the many) solutions after a few seconds.
Here are the keystokes of the program “FX”
LBL “FX”
MVAR “X”
MVAR “Y”
RCL “X”
COS
ABS
LN
RCL “Y”
-
.END.
Y contains -2
I solve for X
Where did I make a mistake ? Why does the calculator not find a solution but sticks with "Not a number"....
and does not get out of a seemingly endless loop ...?
How to avoid it ?
Any hint is welcome....
Peculiar Behaviour of solver on DM42
Re: Peculiar Behaviour of solver on DM42
What are the start values you provide in the stack registers X and Y when you call the solver?
And, IIRC, the formula to solve should read f(x)=0. I.e. in your case ln(abs(cos(x)))+2=0. So your program shold look slightly different.
And, IIRC, the formula to solve should read f(x)=0. I.e. in your case ln(abs(cos(x)))+2=0. So your program shold look slightly different.
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
Re: Peculiar Behaviour of solver on DM42
The program is correct, Walter.
But I can't reproduce it - we have to know the guess(es) introduced for X?
Also, what's the version of the DM42? (SETUP-About)
Cheers, Werner
But I can't reproduce it - we have to know the guess(es) introduced for X?
Also, what's the version of the DM42? (SETUP-About)
Cheers, Werner
41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE, DM15L
- PierreMengisen
- Posts: 305
- Joined: Wed Nov 29, 2017 1:38 pm
- Location: Neuchâtel CH
Re: Peculiar Behaviour of solver on DM42
really with "Not a number" or with "Invalid Data"?
What is the angle Mode : DEG, RAD or GRAD?
Perhaps is the calculator trying LN of Zero?
Pierre
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
Re: Peculiar Behaviour of solver on DM42
Dear all,
My calculator had the firmware DMCP-3.14 / DM42-3.14 with Free42 2.2
Today I loaded the latest firmware DMCP 3.18t01 with the Free42 version 2.5.16, suggested by Michael.
The problem is gone, and a correct solution appears nearly instantly !
Thanks to the developers that had apparantly already detected the problem.
My calculator had the firmware DMCP-3.14 / DM42-3.14 with Free42 2.2
Today I loaded the latest firmware DMCP 3.18t01 with the Free42 version 2.5.16, suggested by Michael.
The problem is gone, and a correct solution appears nearly instantly !
Thanks to the developers that had apparantly already detected the problem.