20060301
Problem
Use this keyboard:
Operation
mth abc cat 2D
What is the sign of
–3.4567? –1
(signum returns –1 for a
negative value, 1 for a
positive value, “Undefined” for
0, and
A
A
for an
imaginary number.)
Func [signum]
-
3.4567
w
What is the integer part of
–3.4567? –3
CALC Func
-
3.4567
w
What is the decimal part of
–3.4567? –0.4567
Func [frac]
-
3.4567
w
What is the greatest integer
less than or equal to
–3.4567? –4
Func [intg]
-
3.4567
w
What is –3.4567 rounded to
two decimal places? –3.46
Func [fRound]
-
3.4567
,
2
w
What is –34567 rounded to
four significant digits?
–34570
Func [sRound]
-
34567
,
4
w
*
* To round to 10 digits, specify “0” for the second argument.
k
Random Number Generator (rand, randList, RandSeed)
• The ClassPad random number generator can generate truly random numbers (non-
sequential random numbers) and random numbers that follow a particular pattern (sequential
random numbers). Using the “randList” function, you can generate a list whose elements
contain random numbers. There are nine different patterns for generation of sequential
random numbers. Use the “RandSeed” command to switch between non-sequential and
sequential random number generation, and to select the sequential random number
generation pattern.
u
ClassPad Operation
(1) Use the “RandSeed” command to configure random number generation settings, if
required.
(2) Use the “rand” function or “randList” function to generate the random numbers.
2-4-6
Function Calculations