Post Reply 
Logical NOT
06-08-2015, 06:47 AM
Post: #2
RE: Logical NOT
(06-08-2015 01:32 AM)Alberto Candel Wrote:  There seems to be an error with logical NOT (and other logicals) in CAS. The ToolBox shows "NOT" with capital letters, but when selecting it from CAS, transforms to lower case letters ("not"). In lower case in CAS it does not work (returns error).

Lowercase "not" does work in CAS, but then it requires parentheses (contrary to what the help screen says), like this:

not(5) --> 0.
not(0) --> 1.

This split personality of NOT/not in CAS is also found in other functions, e.g. the XOR/xor function in CAS:

1 XOR 2 --> 0 (ok)
xor(1,2) --> 0. (ok)
1 xor 2 --> error
XOR(1,2) --> error

Needless to say, the HP Prime has many personality quirks, unlike us perfectly balanced humans. Wink

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Logical NOT - Alberto Candel - 06-08-2015, 01:32 AM
RE: Logical NOT - Joe Horn - 06-08-2015 06:47 AM
RE: Logical NOT - Alberto Candel - 06-08-2015, 03:11 PM
RE: Logical NOT - Joe Horn - 06-10-2015, 05:42 AM
RE: Logical NOT - Alberto Candel - 06-10-2015, 03:19 PM
RE: Logical NOT - compsystems - 06-10-2015, 06:18 PM



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