Number of columns of the matrix



(C1) a : matrix([u,n,k],[1,2,3])$
(C2) length(a);
(D2)                                   2
(C3) length(first(a));
(D3)                                   3
(C4)  size(m) := if matrixp(m) then [length(m),length(first(m))] else 
false;
(D4) size(m) := IF MATRIXP(m) THEN [LENGTH(m), LENGTH(FIRST(m))] ELSE 
FALSE
(C5) size(a);
(D5)                                [2, 3]
(C6) a;
                                  [ u  n  k  ]
(D6)                              [         ]
                                  [ 1  2  3 ]
(C7) 


Barton


Alexey <destiny@smtp.ru>
Sent by: maxima-admin@www.ma.utexas.edu
02/27/2003 04:15 PM
Please respond to Alexey

 
        To:     maxima@www.ma.utexas.edu
        cc: 
        Subject:  [Maxima] Number of columns of the matrix


Hello!

LENGTH(m)  if  the  number of rows in the matrix m. But how to get the
number of columns of the matrix?

-- 
Alexey