Xnum; Xor; Xpon - HP 48gII Advanced User's Reference Manual

Graphing calculator
Hide thumbs Also See for 48gII:
Table of Contents

Advertisement

Input/Output:
See also:
BUFLEN, SBRK, SRECV, STIME

XNUM

CAS:
Convert objects to 12-digit decimal numeric values.

XOR

Type:
Function
Description: Exclusive OR Function: Returns the logical exclusive OR of two arguments.
When the arguments are binary integers or strings, XOR does a bit-by-bit (base 2) logical
comparison:
• Binary integer arguments are treated as sequences of bits with length equal to the current
wordsize. Each bit in the result is determined by comparing the corresponding bits (bit
bit
) in the two arguments, as shown in the following table:
2
• String arguments are treated as sequences of bits, using 8 bits per character (that is, using the
binary version of the character code). The two string arguments must be the same length.
When the arguments are real numbers or symbolics, XOR simply does a true/false test. The
result is 1 (true) if either, but not both, arguments are nonzero; it is 0 (false) if both arguments
are nonzero or zero. This test is usually done to compare two test results.
If either or both of the arguments are algebraic objects, then the result is an algebraic of the form
symb
XOR symb
1
result from the algebraic result.
...ã L
Access:
Flags:
Binary Integer Wordsize (-5 through -10), Binary Integer Base (-11, -12)
Input/Output:
See also:
AND, NOT, OR

XPON

Type:
Function
Description: Exponent Function: Returns the exponent of the argument.
3-202 Full Command and Function Reference
Level 1/Argument 1
"string"
"string"
bit
1
0
0
1
1
. Execute
NUM (or set flag –3 before executing XOR) to produce a numeric
2
LOGIC XOR
L
BASE
LOGIC XOR
Level 2/Argument 1
Level 1/Argument 2
#n
1
"string
"
1
T/F
1
T/F
'symb'
'symb
'
1
Level 2/Item 1
"substring
XOR bit
bit
bit
2
1
0
0
1
1
0
1
1
0
(ã is the right-shift of the 3key).
( ´ is the left-shift of the Pkey).
#n
2
"string
"
2
T/F
2
'symb'
T/F
'symb
'
2
Level 1/Item 2
1
"
0
unsent
2
Level 1/Item 1
#n
3
"string
"
3
0/1
'T/F XOR symb'
'symb XOR T/F'
'symb
XOR symb
1
and
1
'
2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents