Differences between revisions 1 and 2
Revision 1 as of 2010-12-18 06:14:15
Size: 383
Comment: ploting Newtons law of cooling with y as temperature and x as time variables
Revision 2 as of 2010-12-18 07:18:09
Size: 616
Editor: sai kumar
Comment: properties of matrices
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
var('x')
y=function('y',x)
deq=diff(y,x)-(-0.046)*(y-32)==0
plot(desolve(deq,[y,x],ics=(0,66)),(x,0,10),ymin=0,ymax=67)+plot(32,(x,0,10))
A=matrix([[2,3,4],[5,6,7],[8,9,1]])
B=matrix([[4,5,6],[1,3,4],[6,5,9]])
C=matrix([[5,7,2],[5,1,9],[8,3,7]])
I=matrix([[1,0,0],[0,1,0],[0,0,1]])
Q=I*A
print Q
Z=bool(Q==A)
print Z
w=(A*B)*C
e=A*(B*C)
print w
print e
L=bool(w==e)
print L
r=A*(B+C)
t=(A*B)+(A*C)
print r
print t
V=bool(r==t)
print V
Y=A*B
U=B*A
print U
print Y
bool(U==Y)
}}}
Line 16: Line 37:
   * <Manisha>, <student>, <SNIST>
   * <Deepthi>, <student>, <SNIST>
   * guna,student,snist
   * sadhana,student,snist
   * sai kumar,student,mriet
  • Book

    Linear Algebra

    Author

    Gilbert Strang

    Edition

A=matrix([[2,3,4],[5,6,7],[8,9,1]])
B=matrix([[4,5,6],[1,3,4],[6,5,9]])
C=matrix([[5,7,2],[5,1,9],[8,3,7]])
I=matrix([[1,0,0],[0,1,0],[0,0,1]])
Q=I*A
print Q
Z=bool(Q==A)
print Z
w=(A*B)*C
e=A*(B*C)
print w
print e
L=bool(w==e)
print L
r=A*(B+C)
t=(A*B)+(A*C)
print r
print t
V=bool(r==t)
print V
Y=A*B
U=B*A
print U
print Y
bool(U==Y)

  • Solution by:

    • guna,student,snist
    • sadhana,student,snist
    • sai kumar,student,mriet

Strang-1.4-3 (last edited 2010-12-18 07:18:09 by sai kumar)