62 Using Calculator
Defining a multiple-line function manually
Note: To start each new line without completing the function definition,
you hold down
Alt and press Enter.
As an example, define a function
cum_sum(x) that calculates the
cumulative sum of integers from 1 through x.
1. On the Calculator entry line, type
Define cum_sum(x)=. Do not press
Enter yet.
2. On the
Functions & Programs menu, select Func...EndFunc.
Calculator inserts the template.
3. Type the following lines, pressing
Alt Enter at the end of each line.
4. After typing
Return temp_sum, press Enter to complete the
definition.
5. Evaluate cum_sum(5) to test the function.