Book
Linear Algebra
Author
Gilbert Strang
Edition
#If A^2 is defined then A is necessarily square A=matrix([[1 , 2],[3 , 4]]) print A print A*A B=matrix([[1 , 2],[3 , 4],[3,4]]) print B*B #B must be square matrix output: [1 2] [3 4] [ 7 10] [15 22] Traceback (click to the left of this block for traceback) ... IndexError: Number of columns of self must equal number of rows of right.
Solution by:
<Shravan sanghishetty>, <Student>, <vignan>
<karthik.p>, <Student>, <Vignan>
<sridhar.b>,<student>,<Vignan>