Application Guide

Program Editor Overview
The Program Editor enables you to define, edit, and manage user-defined functions
and programs.
What You Can Do
Use programming templates and dialog boxes to define function and programs
with the correct syntax.
Enter multiple-line programming statements without using a special key sequence
to add each line.
Create private and public library objects such as variables, functions, and programs.
Tools Search
Tools Search allows you to search options and menus. It is available across all
applications in the TI-Nspire™ App.
Warning: Tools Search will allow you to search for menu items, but not for command
names.
What You Must Know
A program defined in the Program Editor is similar to functions built into the
TI-Nspire™ software, but there are some differences:
Functions must return a result, which can be graphed or entered in a table.
Programs do not return a result.
You can use a function, but not a program, within an expression. For example, 3 x
func1(3) is valid, but not 3 x prog1(3).
You can only run programs from the Calculator and Notes applications. You can
evaluate functions in Calculator, Notes, Lists &Spreadsheet, Graphs, Geometry,
and Data &Statistics.
A function can refer to any variable; however, it can store a value to a local variable
only. Programs can store to local and global variables.
Note:Arguments used to pass values to a function are automatically treated as
local variables. If you want to store to any other variables, you must define them as
Local from within the function.
A function cannot call a program as a subroutine, but it can call another user-
defined function.
You cannot define a program within a function.
A function cannot define a global function, but it can define a local function.
Program Editor Overview 160