Differences between revisions 1 and 2
Revision 1 as of 2010-12-18 11:01:22
Size: 929
Editor: trnkarthik
Comment:
Revision 2 as of 2010-12-18 12:13:06
Size: 1117
Editor: 10
Comment:
Deletions are marked like this. Additions are marked like this.
Line 47: Line 47:
   * <T.R.N.Karthik>, <Student>, <Gitam University>  *<yedukondalu>, <student>, <Prakasam engineering College>
   *<n srija> <student>, <Prakasam engineering College>
   *<triveni>, <student>, <Prakasam engineering College>
  
   *<siva latha>, <student>, <Prakasam engineering College>
  • Book

    Linear Algebra

    Author

    Gilbert Strang

    Edition

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

  • Solution by:

  • <yedukondalu>, <student>, <Prakasam engineering College>

    • <n srija> <student>, <Prakasam engineering College>

    • <triveni>, <student>, <Prakasam engineering College>

    • <siva latha>, <student>, <Prakasam engineering College>

Strang-1.4-58-U (last edited 2010-12-18 12:13:06 by 10)