HP 48gII and 50g Graphing Calculator Advanced User's Reference Manual (V2)

3-196 Full Command and Function Reference
If the list contains a single number n
elements
, the result is an n-element vector. If the list contains
two numbers n
rows
and m
cols
, the result is an n × m matrix.
Elements taken from the argument vector or matrix preserve the same row order in the resulting
vector or matrix. If the result is dimensioned to contain fewer elements than the argument vector
or matrix, excess elements from the argument vector or matrix at the end of the row order are
discarded. If the result is dimensioned to contain more elements than the argument vector or
matrix, the additional elements in the result at the end of the row order are filled with zeros.
If the argument vector or matrix is specified by global, the result replaces the argument as the
contents of the variable.
Access:
CREATE
LL
RDM
( Ø is the left-shift of the 5key).
MATRIX MAKE RDM
( ´ is the left-shift of the Pkey).
Input/Output:
Level 2/Argument 1 Level 1/Argument 2 Level 1/Item 1
[ vector ]
1
{ n
elements
}
[ vector ]
2
[ vector ]
{ n
rows
, m
cols
}
[[ matrix ]]
[[ matrix ]]
{ n
elements
}
[ vector ]
[[ matrix ]]
1
{ n
rows
, m
cols
}
[[ matrix ]]
2
'global'
{ n
elements
}
'global'
{ n
rows
, m
cols
}
Example 1:
[ 2 4 6 8 ] { 2 2 } RDM
returns
[[ 2 4 ][ 6 8 ]]
.
Example 2:
[[ 2 3 4][ 1 6 9 ]] 8 RDM
returns
[ 2 3 4 1 6 9 0 0 ]
.
See also: TRN
RDZ
Type: Command
Description: Randomize Command: Uses a real number x
seed
as a seed for the RAND command.
If the argument is 0, a random value based on the system clock is used as the seed.
Access: !´L
PROBABILITY RDZ
( ´ is the left-shift of the Pkey).
Input/Output:
Level 1/Argument 1 Level 1/Item 1
x
seed
See also: COMB, PERM, RAND, !
RE
Type: Function
Description: Real Part Function: Returns the real part of the argument.
If the argument is a vector or matrix, RE returns a real array, the elements of which are equal to
the real parts of the corresponding elements of the argument array.
Access: …ßL
RE
(ßis the right-shift of the 1key).
Flags: Numerical Results (–3)