20010102
k List Calculation Commands [OPTN]-[LIST]
u Dim
Function: Returns the dimension of a list.
Syntax: Dim List
Example To determine the dimension of list {1, 2, 3}
K1(LIST)b(CALC)b(Dim)!*( { )b,c,d
!/( } )w 3
u Min
Function: Returns the minimum value of an expression or the elements in a list.
Syntax: Min( {List/Exp} [ ) ]
Min( {List/Exp}, {List/Exp} [ ) ]
Example To determine the minimum value of the elements in list {1, 2, 3}
K1(LIST)b(CALC)c(Min)!*( { )b,c,d
!/( } )w 1
Example To compare each element of list {1, 2, 3} with the value 2, and produce
a list whose elements are the minimum value resulting from each
comparison
K1(LIST)b(CALC)c(Min)!*( { )b,c,d
!/( } ),cw {
1, 2, 2
}
Example To compare the elements of list {1, 2, 3} and list {3, 1, 2}, and produce
a list whose elements are the minimum value resulting from each
comparison
K1(LIST)b(CALC)c(Min)!*( { )b,c,d
!/( } ),!*( { )d,b,c!/( } )w {1, 1, 2
}
7-1-23
Using the CAS (Computer Algebra System) Mode