Appendix a: function and instruction reference – Texas Instruments TI-73 EXPLORER User Manual

Page 299

Advertising
background image

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

N U M

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

L138

iPart ({1.2,3.4,5.6}) b

{1 3 5}

iPart(112)

1

:

IS>(

variable,value

)

:command1 (if answer is  value)

:command2

‡

8

C T L

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

Advertising