beautypg.com

Casio 330 User Manual

Page 139

background image

20090601

2-4-12

Function Calculations

I Condition Judgment (judge, piecewise)
S\

“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 U

Is the following expression
true or false?
1 < 0

FALSE

Func

[judge] 1

0 U

S “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(, , indeterminate> [ ) ]
or
piecewise(, , ,
[ ) ]

Use the 2D keyboard (

) to input “piecewise” function according to the syntax shown

below.

,

or

,

,

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

G

[piecewise] 0 7 1
2 U
or

1 A 2 CD 0 7

U

For the expression 1 x
(x = variable), return 1 when
x is 1 or less, and 2 when x
is greater than 1.

G

1 A 2 CD 1 7

A 1

7U