EasyManuals Logo

Texas Instruments TI-89 Titanium User Manual

Texas Instruments TI-89 Titanium
977 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 #627 background imageLoading...
Page #627 background image
Programming 624
Example 4
This example uses built-in functions to calculate the result without using a loop.
Ê
Prompts for input on Program I/O.
Ë Calculates sum.
Ì Displays output on Program I/O screen.
Note:
Because Input returns n as a number, you do not need to use expr to convert n.
Ê
Ë
Ì
:prog4()
:Prgm
:Input "Enter an integer",n
:sum(seq(i,i,1,n))!temp
:Disp temp
:EndPrgm
Function Used in this example to:
seq Generate the sequence of integers from 1 to n.
sum Sum the integers in the list generated by seq.
seq(expression, var, low, high [,step])
Ê expression used to generate the sequence
Ë variable that will be incremented
Ì initial and final values of var
Í
increment for var ; if omitted, uses 1
ÊËÌÌÍ

Table of Contents

Other manuals for Texas Instruments TI-89 Titanium

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments TI-89 Titanium Specifications

General IconGeneral
Display TypeLCD
Display Resolution160 x 100 pixels
CPUMotorola 68000
CPU Speed16 MHz
RAM256 KB
Flash ROM2.7 MB
Programming LanguageTI-BASIC, Assembly
Power Source4 AAA batteries
ConnectivityI/O port
Dimensions7.5 x 3.5 x 1 inches

Related product manuals