12-5-2

User-defined Functions

• Input user-defined function arguments as parameter

Parameter variable

variables. For more information about parameter

 

 

variables, see page “Configuring Parameter Variables

 

 

and Inputting Their Values” on page 12-2-7.

 

 

(6)After the function is the way you want, tap [, or tap [Edit] and then [Save File] to save it.

Tip

A user-defined function can contain only a single mathematical expression.

An error “Invalid in a Function or Current Expression” occurs if a user-defined function contains multiple expressions, or is followed by a carriage return.

A user-defined function cannot contain any command.

ICreating a User-defined Function Using the Define Command

The procedure below describes how to create a user-defined function by executing the Define command from the Main application.

Syntax: Define:h[<folder name>\ ]<function name>([<variable name>[,<variable name>...]]) =<expression>

Items inside of brackets ([ ]) can be skipped.: indicates a space.

SClassPad Operation

(1)On the application menu, tap .(2)Press ., and then tap the (catalog) tab.

(3)On the catalog (cat) keyboard that appears, tap the [Form] down arrow button, and then select [Cmd].

(4)Scroll the list of commands until the Define command is visible, and then tap Define to select it.

(5)Tap [INPUT] to input the Define command.(6)Input the function you want to define.

Example 1: Define folder1 \ f1(x) = 2x + 1 (where folder1 is an existing folder)

Example 2: Define f2(x, y) = 2x + 3y + 1Example 3: Define sen(x) = sin (x)(7)Tap Uto store the function.

20060301