Calculator Home Screen
211
Creating and Evaluating User-Defined Functions
User-defined functions can be a great time-saver when you need to repeat the same
expression (but with different values) multiple times. User-defined functions can also
extend your TI-89 Titanium’s capabilities beyond the built-in functions.
Format of a Function
The following examples show user-defined functions with one argument and two
arguments. You can use as many arguments as necessary. In these examples, the
definition consists of a single expression (or statement).
When defining functions and programs, use unique names for arguments that will not be
used in the arguments for a subsequent function or program call.
Note:
Function names follow the same rules as variable names. Refer to “Storing and
Recalling Variable Values” in
Operating the Calculator
.
In the argument list, be sure to use the same arguments that are used in the definition.
For example,
cube(n) = x
3
gives unexpected results when you evaluate the function.
cube(x) = x
3
Ê Ë
Ì
Ê
Function name
Ë
Argument list
Ì
Definition
xroot(x,y) = y
1/x
Ê Ë
Ì
Summary of Contents for Titanium TI-89
Page 9: ...Getting Started 6 TI 89 Titanium keys Ë Ì Í Ê ...
Page 34: ...Getting Started 31 2 or D 2 B u s i n e s s D B D B Press Result ...
Page 43: ...Getting Started 40 3 0 D B D D B D Press Result ...
Page 44: ...Getting Started 41 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Page 58: ...Getting Started 55 Example Set split screen mode to TOP BOTTOM Press Result 3 B D ...
Page 70: ...Getting Started 67 ...
Page 175: ...Operating the Calculator 172 From the Keyboard ...
Page 456: ...Tables 453 ...
Page 527: ...Data Matrix Editor 524 ...