
476 Appendix A: Functions and Instructions
8992APPA.DOC TI-89 / TI-92 Plus: Appendix A (US English) Susan Gullord Revised: 02/23/01 1:48 PM Printed: 02/23/01 2:21 PM Page 476 of 132
ord() MATH/String menu
ord(string) ⇒ integer
ord(list1) ⇒ list
Returns the numeric code of the first
character in character string string, or a list
of the first characters of each list element.
See Appendix B for a complete listing of
character codes.
ord("hello") ¸104
char(104) ¸"h"
ord(char(24)) ¸24
ord({"alpha","beta"}) ¸
{
97 98
}
Output CATALOG
Output row, column, exprOrString
Displays exprOrString (an expression or
character string) on the Program I/O screen
at the text coordinates (row, column).
An expression can include conversion
operations such as 4DD and 4Rect. You can
also use the 4 operator to perform unit and
number base conversions.
If Pretty Print = ON, exprOrString is “pretty
printed.”
From the Program I/O screen, you can press
‡to display the Home screen, or a program
can use DispHome.
Program segment:
©
:Ran
d
See
d
11
47
:C
l
rIO
:For i,
1
,90,
1
0
: Output i, ran
d(1
00
)
,"He
ll
o"
:En
d
For
©
Result after execution:
P4Rx() MATH/Angle menu
P4Rx(rExpression, qExpression) ⇒ expression
P4Rx(rList, qList) ⇒ list
P4Rx(rMatrix, qMatrix) ⇒ matrix
Returns the equivalent x-coordinate of the
(r, q) pair.
Note: The q argument is interpreted as either
a degree or radian angle, according to the
current angle mode. If the argument is an
expression, you can use óor ôto override the
angle mode setting temporarily.
In Radian angle mode:
P4Rx(r,q) ¸cos(q)ør
P4Rx(4,60¡) ¸2
P4Rx({ë3,10,1.3},{p/3,ëp/4,0})
¸
{
ë3/2 5ø‡2 1.3
}
P4Ry() MATH/Angle menu
P4Ry(rExpression, qExpression) ⇒ expression
P4Ry(rList, qList) ⇒ list
P4Ry(rMatrix, qMatrix) ⇒ matrix
Returns the equivalent y-coordinate of the
(r, q) pair.
Note: The q argument is interpreted as either
a degree or radian angle, according to the
current angle mode. If the argument is an
expression, you can use óor ôto override the
angle mode setting temporarily.
In Radian angle mode:
P4Ry(r,q) ¸sin(q)ør
P4Ry(4,60¡) ¸2ø‡3
P4Ry({ë3,10,1.3},{p/3,ëp/4,0})
¸
{ë3ø‡3
2 ë5ø‡2 0.}