Using Calculator 61
As an example, define a function named g(x,y) that compares two
arguments x and y. If argument x > argument y, the function should
return the value of x. Otherwise, it should return the value of y.
1. On the Calculator entry line, type
Define g(x,y)=. Do not press
Enter yet.
2. On the Functions & Programs menu, select Func...EndFunc.
Calculator inserts the template.
3. On 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.