Ch-4-Prob-13-Final-김강섭

1906 days ago by matrix

x1=matrix(2,1,[9,1]) x2=matrix(2,1,[2,3]) A=x1.augment(x2) a=A.det() print "area=", a.abs() #area of parallelogram 
       
area= 25
area= 25
x1=matrix(3,1,[-8,-4,-1]) x2=matrix(3,1,[9,4,1]) x3=matrix(3,1,[5,11,3]) A=x1.augment(x2).augment(x3) a=A.det() print "volume=", a.abs() #volume of parallelepiped 
       
volume= 1
volume= 1