Texas Instruments NS/CLM/1L1/B Reference Guide - Page 28
Expression, Function, Param1, Param2, expression, Param1,Param2, Block, Program
UPC - 033317190256
View all Texas Instruments NS/CLM/1L1/B manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 28 highlights
Define Define Var = Expression Define Function(Param1, Param2, ...) = Expression Defines the variable Var or the user-defined function Function. Parameters, such as Param1, provide placeholders for passing arguments to the function. When calling a user-defined function, you must supply arguments (for example, values or variables) that correspond to the parameters. When called, the function evaluates Expression using the supplied arguments. 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: In the Calculator application on the handheld, you can enter multi-line definitions by pressing @ · instead of at the end of each line. On the computer keyboard, hold down Alt and press Enter. Note: See also Define LibPriv, page 22, and Define LibPub, page 23. Catalog > Define LibPriv Define LibPriv Var = Expression Define LibPriv Function(Param1, Param2, ...) = Expression Define LibPriv Function(Param1, Param2, ...) = Func Block EndFunc Define LibPriv Program(Param1, Param2, ...) = Prgm Block EndPrgm Operates the same as Define, except defines a private library variable, function, or program. Private functions and programs do not appear in the Catalog. Note: See also Define, page 22, and Define LibPub, page 23. Catalog > 22 TI-Nspire™ Reference Guide