EasyManua.ls Logo

HP HP-28S - TEST Menu

HP HP-28S
49 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
HP-28S
TEST Menu
General Special commands that are mostly used in conjunction with programs:
Return true if the objects in level 1 and 2 are of different type or have the
same type but a different value.
Lists and programs are assumed to be identical when they contain the
same elements.
> <
Can be used to compare:
Real numbers (but not complex numbers)
Binary numbers
Strings (in alphabetical order that is based on ASCII codes)
SF Set specified flag. The real flag number must be in the range 1…64.
Binary numbers cannot be used as arguments to SF and the following
functions. See Flags.
CF Clear specified flag.
FS? Test specified flag and return 1 when it is set, otherwise 0.
FC? Test specified flag and return 0 when it is set, otherwise 1.
FS?C Test specified flag and return 1 when it is set, otherwise 0.
Clear the flag after the test.
FC?C Test specified flag and return 0 when it is set, otherwise 1.
Clear the flag after the test.
AND Treats the values in stack level 1 and 2 as flags (true if non-0, false if 0).
It performs the AND operation and returns 0 or 1.
OR Performs the OR operation and returns 0 or 1.
XOR Performs the XOR operation and returns 0 or 1.
NOT NOT operation: A non-0 value results in 0; a 0-value results in 1.
SAME Very similar to ==. However, SAME returns true when names are
involved and the names are identical. SAME never returns an expression.
Example: 'A' 5 SAME returns 0.
A quoted name is not evaluated.
== Compare objects in stack level 1 and 2 and return 1 if they are of the
same type and have the same value.
Returns an expression if names are involved.
Example: 'A' 5 == returns 'A==5'.
A quoted name is not evaluated.
STOF Takes a binary number from the stack and replaces all 64 flags with the
bits of the binary number. bit0 of the binary number replaces flag 1 and
bit63 replaces flag 64. See Flags.
RCLF Return the settings of the 64 flags in a binary number.
STOF/RCLF can be used to save and restore the machine settings in case
a program needs to change flag-based operation modes.
TYPE Returns the type of the object in stack level 1:
Real number...................: 0
Complex number.............: 1
String.............................: 2
Real vector or matrix.......: 3
Complex vector or matrix.: 4
List.................................: 5
28

Other manuals for HP HP-28S

Related product manuals