Define
Catalog >
Var
and
Function
cannot be the name of a
system variable or built-in function or
command.
Note:
This form of
Define
is equivalent to
executing the expression:
expression
→
Function
(
Param1,Param2
).
Define
Function
(
Param1
,
Param2
,
...
) =
Func
Block
EndFunc
Define
Program
(
Param1
,
Param2
,
...
) =
Prgm
Block
EndPrgm
In this form, the user-defined function or
program can execute a block of multiple
statements.
Block
can be either a single statement or a
series of statements on separate lines.
Block
also can include expressions and
instructions (such as
If
,
Then
,
Else
, and
For
).
Note for entering the example:
For
instructions on entering multi-line program
and function definitions, refer to the
Calculator section of your product
guidebook.
Note:
See also
Define LibPriv
, page 51, and
Define LibPub
, page 52.
Define LibPriv
Catalog >
Define LibPriv
Var
=
Expression
Define LibPriv
Function
(
Param1
,
Param2
,
...
) =
Expression
Define LibPriv
Function
(
Param1
,
Param2
,
...
) = Func
Block
EndFunc
Define LibPriv
Program
(
Param1
,
Param2
,
Alphabetical Listing
51
Summary of Contents for TI-Nspire CAS
Page 4: ...4 Service and Warranty Information 249 Index 251 ...
Page 248: ...248 ...
Page 250: ...250 ...