Texas Instruments TI-73 EXPLORER Car Stereo System User Manual


 
Appendix A: Function and Instruction Reference
293
73A-ENG.DOC AppxA: Function/Instruction Reference, English Julie Hewlett Revised: 07/29/98 1:10 PM Printed:
05/19/99 9:03 AM Page 293 of 36
Input
Input [variable]
Input ["text",variable]
8
I/O
Programming command;
Input
, with no arguments,
displays the current graph. Otherwise,
Input
accepts
input and stores it to variable (prompted by a
?
,
unless otherwise defined). text designates a specific
text prompt (16 characters), if desired, and must be
enclosed in quotation marks.
PROGRAM:INPUTVAR
:Input "Y
=",Y
:Input "A=",A
:Input "
¨
DATA=",
¨
DATA
:Disp "Y
(A)=",Y (A)
:Pause
:Disp
:"Y
(
¨
DATA)=",Y (
¨
DATA)
:Pause
:PROGRAM:GRPHINPT
:FnOff
:PlotsOff
:ZStandard
:Input
:Line (0,0,8,8)
:Pause
int(value)
-|
Returns the largest integer value, where value can be a
real number, expression, or list.
For a negative non-integer,
int
returns the integer that is
one less than the integer part of the number. To return
the exact integer part, use
iPart
instead.
int (23.45)
b
23
int (
L
23.45)
b
L
24
posintegerA Int
à
posintegerB
Divides two positive integers and displays the
quotient and the remainder,
r
.
9 Int
à
2
b
4r1
iPart(value)
1
NUM
Returns the integer part of a real number, expression,
or each element of a list.
iPart (23.45)
b
23
iPart (
L
17.26
¦
8)
b
L
138
iPart ({1.2,3.4,5.6})
b
{1 3 5}
iPart(1
1
2
)1
:IS>(variable,value)
:command1 (if answer is value)
:command2
8
CTL
Programming command (increment and skip if
greater than); adds variable by 1. If the answer is >
value, then command1 is skipped; if the answer is
value, then command1 is executed. command2 is
always executed.
:PROGRAM:IS
:0
Ü
A
:Lbl S
:Disp A
:IS>(A,5)
:Goto S
:Disp "A IS NOW >5"
:Pause