Appendix A: Functions and Instructions 817
min(
list
) ⇒
expression
Returns the minimum element of
list
.
min({0,1,ë 7,1.3,.5})
¸ ë 7
min(
matrix1
)
⇒
matrix
Returns a row vector containing the minimum
element of each column in
matrix1
.
Note: See also
fMin()
and
max()
.
min([1,ë 3,7;ë 4,0,.3])
¸
[ë 4 ë 3 .3]
mod() MATH/Number menu
mod(
expression1
,
expression2
) ⇒
expression
mod(
list1
,
list2
) ⇒
list
mod(
matrix1
,
matrix2
) ⇒
matrix
Returns the first argument modulo the second
argument as defined by the identities:
mod(x,0) r x
mod(x,y) r xì y floor(x/y)
When the second argument is non-zero, the result is
periodic in that argument. The result is either zero or
has the same sign as the second argument.
If the arguments are two lists or two matrices,
returns a list or matrix containing the modulo of
each pair of corresponding elements.
Note: See also
remain()
.
mod(7,0)
¸ 7
mod(7,3)
¸ 1
mod(ë 7,3)
¸ 2
mod(7,ë 3)
¸ ë 2
mod(ë 7,ë 3)
¸ ë 1
mod({12,ë 14,16},{9,7,ë 5})
¸
{3 0 ë 4}
MoveVar CATALOG
MoveVar
var
,
oldFolder
,
newFolder
Moves variable
var
from
oldFolder
to
newFolder
. If
newFolder
does not exist,
MoveVar
creates it.
{1,2,3,4}! L1
¸ {1 2 3 4}
MoveVar L1,Main,Games
¸ Done
mRow() MATH/Matrix/Row ops menu
mRow(
expression
,
matrix1
,
index
) ⇒
matrix
Returns a copy of
matrix1
with each element in row
index
of
matrix1
multiplied by
expression
.
mRow(ë 1/3,[1,2;3,4],2)
¸
[
1 2
ë 1 ë 4/3
]
mRowAdd() MATH/Matrix/Row ops menu
mRowAdd(
expression
,
matrix1
,
index1
,
index2
)
⇒
matrix
Returns a copy of
matrix1
with each element in row
index2
of
matrix1
replaced with:
expression
× row
index1
+ row
index2
mRowAdd(ë 3,[1,2;3,4],1,2)
¸
[
1 2
0 L2
]
mRowAdd(n,[a,b;c,d],1,2)
¸
[
a
aø n+c
b
bø n+d
]