EasyManuals Logo
Home>Texas Instruments>Calculator>Voyage 200

Texas Instruments Voyage 200 User Manual

Texas Instruments Voyage 200
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

Other manuals for Texas Instruments Voyage 200

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments Voyage 200 and is the answer not in the manual?

Texas Instruments Voyage 200 Specifications

General IconGeneral
TypeScientific
Form factorPocket
Product colorBlue
Display resolution128 x 240 pixels

Related product manuals