incompatibility? between matrix and invert/invert_by_lu



The size of the matrix A is a 1 x 2 matrix; the 1,1 entry is the list [1,0]
and
the 1,2 entry is the list [0,1]. Maybe you wanted a 2x2 matrix:

(%i12) funmake('matrix,rows);
(%o12) matrix([1,0],[0,1])

(%i13) invert(%);
(%o13) matrix([1,0],[0,1])

Barton

-----maxima-bounces at math.utexas.edu wrote: -----

>(%i3)?rows:[[1,0],[0,1]]
>(%o3)?[[1,0],[0,1]]
(%i4)?A:matrix(rows)
>(%o4)?matrix([[1,0],[0,1]])
>(%i5)?invert(A)
>
>incompatible?dimensions?-?cannot?multiply