2020-09-14 Math 3110

450 days ago by calkin

A = matrix(3,4,[1,2,3,4, 4,3,2,1 ,1,2,1,2]) 
       
print(A) 
       
[1 2 3 4]
[4 3 2 1]
[1 2 1 2]
[1 2 3 4]
[4 3 2 1]
[1 2 1 2]
show(A) 
       

We can view a vector in $R^n$ as a $n \times 1$ matrix

v=matrix(4,1,[1,0,0,1]) 
       
show(v) 
       
u=A*v 
       
show(u) 
       
print A[1][2] 
       
2
2
B=matrix(4,2,[1, 1, 0,1,0,2,1,3]) show(B) show(A*B) 
       

show(A)