Repeating A Loop Immediately; Lbl And Goto Loops; Changing Mode Settings; Setting A Mode - Texas Instruments TI-NSPIRE Software Manual

Cas computer software
Hide thumbs Also See for TI-NSPIRE:
Table of Contents

Advertisement

Repeating a loop immediately

The
command immediately transfers program control to the next
Cycle
iteration of a loop (before the current iteration is complete). This
command works with
Loop...EndLoop

Lbl and Goto loops

Although the
Lbl
commands, they can be used to create an infinite loop. For example:
As with
Loop...EndLoop
function or program exit from the loop.

Changing mode settings

Functions and programs can use the
set specific calculation or result modes. The Program Editor's
makes it easy to enter the correct syntax without requiring you to
memorize numeric codes.
Note: Mode changes made within a function or program definition do
not persist outside the function or program.

Setting a mode

1.
Position the cursor where you want to insert the
2.
On the
Mode
settings.
3.
Select a setting.
The correct syntax is inserted at the cursor location. For example:

Debugging programs and handling errors

After you write a function or program, you can use several techniques to
find and correct errors. You can also build an error-handling command
into the function or program itself.
Programming
For...EndFor
.
(label) and
Goto
Lbl START
--------
--------
Goto START
--------
, the loop should contain commands that let the
menu, select the mode to display a menu of its valid
,
While...EndWhile
commands are not strictly loop
function to temporarily
setMode()
, and
menu
Mode
function.
setMode
341

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-nspire

Table of Contents