EasyManuals Logo

Texas Instruments Titanium TI-89 User Manual

Texas Instruments Titanium TI-89
1008 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 #225 background image
Calculator Home Screen 225
Creating a Multi-Statement Function
Creating a Multi-Statement FunctionCreating a Multi-Statement Function
Creating a Multi-Statement Function
You can also create a user-defined function whose definition consists of multiple
statements. The definition can include many of the control and decision-making
structures (
If, ElseIf, Return, etc.) used in programming.
Note: For information about similarities and differences between functions and
programs, refer to Programming.
For example, suppose you want to create a function that sums a series of reciprocals
based on an entered integer (
n):
When creating the definition of a multi-statement function, it may be helpful to visualize it
first in a block form.
Ê
Func and EndFunc must begin and end the function.
Ë Variables not in the argument list must be declared as local.
Ê
Ë
Ì
Í
Î
Ê
Func
Local temp,i
If fPart(nn)ƒ0 or nn{0
Return “bad argument”
0!temp
For i,nn,1,M1
approx(temp+1/i)!temp
EndFor
Return temp
EndFunc
1
n
---
1
n 1
------------...
1
1
---+++

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments Titanium TI-89 Specifications

General IconGeneral
Display TypeLCD
Display Resolution160 x 100 pixels
Memory188 KB RAM, 2.7 MB Flash ROM
TypeGraphing Calculator
DisplayMonochrome
ProcessorMotorola 68000
Processor Speed12 MHz
Power Source4 AAA batteries
ConnectivityUSB
ProgrammingTI-BASIC, Assembly
Operating SystemAMS (Advanced Mathematics Software)

Related product manuals