Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Matrix_size

Function: matrix_size (<M>) Return a two member list that gives the number of rows and columns, respectively of the matrix <M>.

M  :  matrix([1,  2],[1,  2]);
v  :  matrix([5],[5]);
matsolve  (M,  b)  :=(block  ([n,  a,  c,  gl,  lsg],n  :  matrix_size(M)[1],lsglist  :  makelist(  concat(x,  i),  i,  1,  n),x  :  genmatrix(  lambda(  [i,  j],  concat(x,  i)  ),  n,  1),/*  x  :  columnvector  [x1,  x2,  ...,  xn]  */c  :  M.x,gl  :  [],for  i  :  1  thru  n  do  gl  :  append  (gl,  [  c[i,  1]  =  b[i,  1]  ]),lsg  :  solve  (gl,  lsglist),return  (lsg)));
matsolve  (M,  v);

(%o1)                                true
(%i2) 

Related Examples

matrix_size

? matrix_size;

Calculate

matrix_size

? matrix_size;

Calculate