2-4-9

Function Calculations

kPermutation (nPr) and Combination (nCr)

uTotal Number of Permutations

n!

nPr = –––––

(n r)!

uTotal Number of Combinations

n!

nCr = –––––––

r! (n r)!

Problem

Use this keyboard:

 

Operation

 

 

 

 

mth

abc

cat

2D

 

 

 

 

 

 

 

 

How many different

CALC

 

Func

 

} 10 ,4 w

permutations are possible

 

 

 

 

 

when you have 10 different

 

 

 

 

 

objects and arrange them

 

 

 

 

 

four at a time?

 

 

 

 

 

10P4 = 5040

 

 

 

 

 

 

 

 

 

 

 

How many different

CALC

 

Func

 

{ 10 ,4 w

combinations are possible

 

 

 

 

 

when you have 10 different

 

 

 

 

 

objects and remove four at

 

 

 

 

 

a time?

 

 

 

 

 

10C4 = 210

 

 

 

 

 

 

 

 

 

 

 

kCondition Judgment (judge, piecewise)

The “judge” function returns TRUE when an expression is true, and FALSE when it is false.

Problem

 

Use this keyboard:

 

 

Operation

 

 

 

 

 

 

 

mth

abc

cat

2D

 

 

 

 

 

 

 

 

 

 

 

Is the following expression

 

 

Func

 

[judge] 1 =1 w

true or false?

 

 

 

 

 

 

 

1 = 1

TRUE

 

 

 

 

 

 

 

 

 

 

 

 

 

Is the following expression

 

 

Func

 

[judge] 1

0 w

true or false?

 

 

 

 

 

 

 

1 < 0

FALSE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

20050501