||'''Book'''|| Linear Algebra || ||'''Author'''|| Gilbert Strang || ||'''Edition'''|| || /* code_begins */ {{{ print "Given three matrices A,X and b.We need to check whether AX=b or not" A=matrix([[1,2],[3,4]]) print "A is given as \n",A X=matrix([[5],[-2]]) print "X is given as \n",X b=matrix([[1],[7]]) print "b is given as\n",b print "Product of A and X is given as :A*X=" print "A*X" K=A*X print "Now checking whether A*X is equal to b or not" K==b print "Thus given matrices can be checked" Result: Given three matrices A,X and b.We need to check whether AX=b or not A is given as [1 2] [3 4] X is given as [ 5] [-2] b is given as [1] [7] Product of A and X is given as :A*X= A*X Now checking whether A*X is equal to b or not Thus given matrices can be checked }}} /* code_ends */ * '''Solution by''': *, , * , *, , *, ,