Casio CLASSPAD330PLUS Calculator User Manual


 
20090601
2-4-12
Function Calculations
k
Condition Judgment (judge, piecewise)
u
“judge” Function
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
true or false?
1 = 1 TRUE
Func [judge] 1
=
1
w
Is the following expression
true or false?
1 < 0 FALSE
Func
[judge] 1
0
w
u
“piecewise” Function
The “piecewise” function returns one value when an expression is true, and another value
when the expression is false.
The syntax of the “piecewise” function is shown below.
piecewise(<condition expression>, <return value when true>, <return value when false or
indeterminate> [ ) ]
or
piecewise(<condition expression>, <return value when true>, <return value when false>,
<return value when indeterminate> [ ) ]
Use the 2D keyboard (
1
) to input “piecewise” function according to the syntax shown
below.
<return value when true>, <condition expression>
<return value when false or indeterminate>
or
<return value when condition 1 is true>, <condition 1 expression>
<return value when condition 2 is true>, <condition 2 expression>
Problem
Use this keyboard:
Operation
mth abc cat 2D
For the expression 0
>
x
(
x
= variable), return 1 when
x
is 0 or less, and 2 when
x
is greater than 0 or
undefined.
Func
[piecewise] 0
5
X
,
1
,
2
w
or
1
1
c
2
ef
0
5
X
w
For the expression 1
>
x
(
x
= variable), return 1 when
x
is 1 or less, and 2 when
x
is greater than 1.
1
1
c
2
ef
1
5
X
c
1
X
w