Application Guide

3. Insert the If...Then...Else...EndIf template.
From the Functions&Programs menu, select Control, and then select
If...Then...Else...EndIf.
Calculator inserts the template.
4. Type the remaining parts of the function, using the arrow keys to move the cursor
from line to line.
5. Press Enter to complete the definition.
6. Evaluate g(3,-7) to test the function.
Defining a Multiple-line Function Manually
Within a multi-line template such as Func...EndFunc or If...EndIf, you can start a new
line without completing the definition.
Handheld: Press @ instead of ·.
Windows®: Hold Alt and press Enter.
Macintosh®: Hold Option and press Enter.
As an example, define a function sumIntegers(x) that calculates the cumulative sum of
integers from 1 through x.
Calculator Application 139