beautypg.com

Giisiaiknnaii, Nesting user-defined functions – HP 48g Graphing Calculator User Manual

Page 140

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

background image

To

execute a user-defined function:

11

■ To use the stack, put the arguments on the stack in the same order

they appear in the left side of the function definition (the last
argument should be in stack level 1), then press the function key in
the VAR menu (or type the function name and press (ENTER)).

B To use algebraic syntax, press

CD,

press the function key in the

VAR menu (or type the function name), press cao> enter the

algebraic arguments in their proper order and separated by commas,

then press (ENTER) (or press (EVAl) to evaluate the expression).

Example:

Execute the user-defined function CMB from the earlier

example to make the following calculations.

Step 1:

Calculate the total number of ways to combine one or more
of four items (n = 4).

4 C M B

1:

15

Step 2:

For the same value of n, calculate the combinations in

algebraic syntax.

O

C M B

(3(11)4

fEVAn

1:

giisiaiKnnaii

15

15

Step 3:

Calculate CMB(Z) in algebraic syntax, where T is a formal

variable. (Purge Z to make sure is doesn't contain an

object.)

CD© z 3(PUM3

CD c M B (3 SD © z

(EVAL)

1:

'Z'^Z-r

Nesting User-Defined Functions

Just like built-in functions, user-defined functions can be included in

the defining expression of a user-defined function.

11-8 Using l\flathematical Functions

This manual is related to the following products: