Calculator Home Screen 221
Format of a Function
Format of a FunctionFormat of a Function
Format of a Function
The following examples show user-defined functions with one argument and two
arguments. You can use as many arguments as necessary. In these examples, the
definition consists of a single expression (or statement).
When defining functions and programs, use unique names for arguments that will not be
used in the arguments for a subsequent function or program call.
Note: Function names follow the same rules as variable names. Refer to “Storing and
Recalling Variable Values” in Operating the Calculator.
In the argument list, be sure to use the same arguments that are used in the definition.
For example,
cube(n) = x
3
gives unexpected results when you evaluate the function.
Arguments (x and y in these examples) are placeholders that represent whatever values
you pass to the function. They do not represent the variables x and y unless you
specifically pass x and y as the arguments when you evaluate the function.
cube(x) = x
3
ÊË Ì
Ê
Function name
Ë Argument list
Ì Definition
xroot(x,y) = y
1/x
ÊË Ì