EasyManuals Logo
Home>Texas Instruments>Calculator>Titanium TI-89

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 #589 background imageLoading...
Page #589 background image
Programming 589
Note: This example calculates the cube if x|0; otherwise, it returns a 0.
The argument x is automatically treated as a local variable. However, if the example
needed another variable, the function would need to declare it as local by using the
Local command.
There is an implied
Return at the end of the function. If the last line is not an expression,
an error occurs.
Example of a Function
Example of a FunctionExample of a Function
Example of a Function
The following function returns the xth root of a value y
(). Two values must be passed
to the function: x and y.
Use
Return. This is useful for
exiting a function and returning a
value at some point other than
the end of the function.
:cube(x)
:Func
:If x<0
: Return 0
:x^3
:EndFunc
y
x

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
BrandTexas Instruments
ModelTitanium TI-89
CategoryCalculator
LanguageEnglish

Related product manuals