Post Reply 
Hp 50g - "?" message and CAS bugs
11-02-2020, 04:53 PM (This post was last modified: 11-04-2020 08:44 AM by franz.b.)
Post: #1
Hp 50g - "?" message and CAS bugs
Hello to all,
it happened that with the exact CAS mode the result was "?" for example evaluating '0 ^ (1/2) ^ 2'. what is the meaning of this message?
it does not change by setting the underflow and overflow flags or with other CAS settings.
In approximate mode there are no strange results.

EDIT: setting the flag -3 the problem does not arise: is it a small bug?

Hardware: Hp48S - Hp50g (5x black + 1 blue) - HP39gII - Hp27s - Casio fx-CG50
Find all posts by this user
Quote this message in a reply
11-02-2020, 07:00 PM
Post: #2
RE: Hp 50g - "?" message
Hi

The meaning of '?' can be found in the 50g Advance User's Reference (AUR) on page 3-288. I'll give you a summary of what it means but I recommend reading it in its entirety in the manual.

Basically, the '?' means the answer is undefined. '?' represents a numerical result that cannot be obtained through the rules of arithmetic, according to the AUR.

I cannot tell you why '0^(1/2)^2' returns '?' because I'm still trying to figure that out myself.
Find all posts by this user
Quote this message in a reply
11-03-2020, 03:51 AM
Post: #3
RE: Hp 50g - "?" message
I also get "?" with SIGN(0). It seems like this should be "0" rather than undermined.
Find all posts by this user
Quote this message in a reply
11-03-2020, 07:23 AM
Post: #4
RE: Hp 50g - "?" message
Another case:
100! work fine, '(1-1)^((1/2)^2)' is correctly 0, but '100!+(1-1)^((1/2)^2)' is '?'.
[Image: icon_confused.gif]

Hardware: Hp48S - Hp50g (5x black + 1 blue) - HP39gII - Hp27s - Casio fx-CG50
Find all posts by this user
Quote this message in a reply
11-03-2020, 08:48 AM
Post: #5
RE: Hp 50g - "?" message
(11-03-2020 03:51 AM)ttw Wrote:  I also get "?" with SIGN(0). It seems like this should be "0" rather than undermined.

On page 3-223 of the AUR, it describes the command SIGN. It states that in exact mode, using SIGN on 0 will be returned as undefined ('?'). In approximate mode, using SIGN on 0 will return 0.

In short, this is by design. Although, it does not answer why it is designed this way.
Find all posts by this user
Quote this message in a reply
11-03-2020, 10:45 AM
Post: #6
RE: Hp 50g - "?" message
I suspect there are obvious bugs in the CAS ...

Hardware: Hp48S - Hp50g (5x black + 1 blue) - HP39gII - Hp27s - Casio fx-CG50
Find all posts by this user
Quote this message in a reply
11-03-2020, 04:30 PM
Post: #7
RE: Hp 50g - "?" message
(11-03-2020 08:48 AM)Carsen Wrote:  In short, this is by design. Although, it does not answer why it is designed this way.

With sgn(x) = x/abs(x), symbolic manipulations are simpler.

Hp50g> 'X+SIN(X)'
Hp50g> SIGN             → (X+SIN(X)) / |X+SIN(X)|

Adding sgn(0)=0 rule, we get this:

IFTE(X+SIN(X) , (X+SIN(X)) / |X+SIN(X)| , 0)
Find all posts by this user
Quote this message in a reply
11-03-2020, 09:11 PM
Post: #8
RE: Hp 50g - "?" message
(11-03-2020 04:30 PM)Albert Chan Wrote:  
(11-03-2020 08:48 AM)Carsen Wrote:  In short, this is by design. Although, it does not answer why it is designed this way.

With sgn(x) = x/abs(x), symbolic manipulations are simpler.

Hp50g> 'X+SIN(X)'
Hp50g> SIGN             → (X+SIN(X)) / |X+SIN(X)|

Adding sgn(0)=0 rule, we get this:

IFTE(X+SIN(X) , (X+SIN(X)) / |X+SIN(X)| , 0)

The problem arises in the context of integer computations though. It means an extra test for every comparison.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)