Temporarily substituting a value for a variable
Use the "|" (such that) operator to assign a value to a variable for just a
single execution of the expression.
a:=200.12
2
a
| a=100
a
Creating user-defined functions and programs
You can use the
programs. You can create them in the Calculator application or in the
Program Editor and then use them in other TI-Nspire™ applications.
For information on programming with the Program Editor, see the
"Programming" and "Libraries" sections of the documentation.
Defining a single-line function
Suppose you want to define a function named
cube of a number or variable.
1.
On the Calculator entry line, type
.
Enter
The message "Done" confirms that the function has been defined.
2.
Type
cube(2)
Defining a multiple-line function using templates
You can define a function consisting of multiple statements entered on
separate lines. A multiple-line function may be easier to read than one
with multiple statements separated by colons.
Note: You can create multiple-line functions only by using the
command. You cannot use the
definitions. The
statements.
60
command to create your own functions and
Define
and press
Enter
:=
Func...EndFunc
200.12
10000
200.12
cube()
Define cube(x)=x^3
to test the function.
or & operators to create multiple-line
template serves as a container for the
that calculates the
and press
Define
Using Calculator