EasyManuals Logo

Texas Instruments TI-Nspire Software Guide

Texas Instruments TI-Nspire
380 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #343 background imageLoading...
Page #343 background image
Programming 331
À Declares variable i as local.
Note: When possible, declare as local any variable that is used only
within the program and does not need to be available after the program
stops.
What causes an undefined variable error message?
An Undefined variable error message displays when you evaluate a user-
defined function or run a user-defined program that references a local
variable that is not initialized (assigned a value).
For example:
À Local variable m is not assigned an initial value.
You must initialize local variables
All local variables must be assigned an initial value before they are
referenced.
À 1 is stored as the initial value for m.
Note: Functions and programs cannot use a local variable to perform
symbolic calculations.
Local i À
For i,0,5,1
Disp i
EndFor
Define fact(n)=Func
Local m
À
While n>1
n
m&m: n–1&n
EndWhile
Define fact(n)=Func
Local m: 1
&m À
While n>1
n
m&m: n–1&n
EndWhile

Table of Contents

Other manuals for Texas Instruments TI-Nspire

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-Nspire and is the answer not in the manual?

Texas Instruments TI-Nspire Specifications

General IconGeneral
TypeDisplay
Form factorPocket
Product colorBlue, White
Display resolution320 x 240 pixels
Display size (HxV) (imperial)0 \
Compatible operating systemsWindows Vista/XP Mac OS X 10.4/10.5
Battery typeAAA
Number of batteries supported4
Weight and Dimensions IconWeight and Dimensions
Dimensions (WxDxH)100 x 198.3 x 28.7 mm

Related product manuals