beautypg.com

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

Page 298

background image

292

Appendix A: Function and Instruction Reference

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 292 of 36

If–Then

:

If

condition

:

Then

:block (if true)

:

End

‡

8

C T L

Programming commands; if condition is true

(non-zero), then block is executed. If condition is

false (zero), then block is skipped.

PROGRAM:THEN

:1ÜX:10ÜY

:If X<10

:Then

:2X+3ÜX

:2Y–3ÜY

:End

:Disp (X,Y)

:Pause

If–Then–Else

:

If

condition

:

Then

:block1 (if true)

:

Else

:block2 (if false)

:

End

‡

8

C T L

Programming commands; if condition is true

(non-zero), then block1 is executed. If condition is

false (zero), then block2 is executed.

PROGRAM:ELSE

:Input "X=",X

:If X<0

:Then

:X

Ü

Y

:Else

:XÜY

:End

:Disp X,Y

:Pause

IndpntAsk

†

- f

Selects the

Indpnt: Ask

TABLE SETUP

format setting.

Table asks the user for independent variable (X)

values.

IndpntAuto

†

- f

Selects the

Indpnt: Auto

TABLE SETUP

format setting.

Table automatically displays independent variable (X)

values.