Texas Instruments TI-89 Titanium Short User Manual page 221

Hide thumbs Also See for TI-89 Titanium:
Table of Contents

Advertisement

or
MATH/Test menu
Boolean expression1
expression
Returns true or false or a simplified form of the
original entry.
Returns true if either or both expressions simplify
to true. Returns false only if both expressions
evaluate to false.
Note: See
integer1
integer2
or
Compares two real integers bit-by-bit using an
operation. Internally, both integers are converted
to signed, 32-bit binary numbers. When
corresponding bits are compared, the result is 1 if
either bit is 1; the result is 0 only if both bits are
0. The returned value represents the bit results,
and is displayed according to the
You can enter the integers in any number base.
For a binary or hexadecimal entry, you must use
the 0b or 0h prefix, respectively. Without a prefix,
integers are treated as decimal (base 10).
If you enter a decimal integer that is too large for
a signed, 32-bit binary form, a symmetric modulo
operation is used to bring the value into the
appropriate range.
Note: See
ord()
MATH/String menu
) ⇒
string
ord(
) ⇒
list1
ord(
Returns the numeric code of the first character in
character string
characters of each list element.
See Appendix B for a complete listing of character
codes.
Output
CATALOG
row
Output
,
Displays
string) on the Program I/O screen at the text
coordinates (
An expression can include conversion operations
such as
operator to perform unit and number base
conversions.
If
Pretty Print = ON
printed."
From the Program I/O screen, you can press ‡ to
display the Home screen, or a program can use
DispHome
Appendix A: Functions and Instructions
Boolean expression2
or
.
xor
integer
.
xor
integer
list
, or a list of the first
string
column
exprOrString
,
(an expression or character
exprOrString
,
).
row
column
. You can also use the 4
and
4DD
4Rect
,
exprOrString
.
Boolean
x‚3 or x‚4 ¸
Program segment:
If x<0 or x‚5
Goto END
If choice=1 or choice=2
Disp "Wrong choice"
In Hex base mode:
0h7AC36 or 0h3D5F ¸ 0h7BD7F
or
In Bin base mode:
0b100101 or 0b100 ¸ 0b100101
mode.
Base
Note: A binary entry can have up to 32 digits
(not counting the 0b prefix). A hexadecimal
entry can have up to 8 digits.
ord("hello") ¸
char(104) ¸
ord(char(24)) ¸
ord({"alpha","beta"}) ¸
Program segment:
:RandSeed 1147
:ClrIO
:For i,1,90,10
:
:EndFor
Result after execution:
is "pretty
©
©
©
Important: Zero, not the letter O.
©
Output i, rand(100),"Hello"
©
x ‚ 3
104
"h"
24
{97
98}
215

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents