Running Programs and Evaluating Functions

After defining and storing a program or function, you can use it from an application. All the applications can evaluate functions, but only the Calculator and Notes applications can run programs.

The program statements are executed in sequential order (although some commands alter the program flow). The output, if any, is displayed in the application’s work area.

Program execution continues until it reaches the last statement or a Stop command.
Function execution continues until it reaches a Return command.

Running a Program or Function from the Program Editor

1. Make sure you have defined a program or function and the Program Editor is the active work area.
2. Tap Tools and select Check Syntax & Store > Run.

This will automatically:

check the syntax and store the program or function,
paste the program or function name on the first available line of the Calculator page.

3. If the program or function requires you to supply one or more arguments, type the values or variable names inside the parentheses.
4. Tap [ENTER].

Note: You can also run a program or function in Calculator or Notes applications by typing the name of the program with parentheses and any required arguments and tapping [ENTER].