Log in to edit a copy.
Download.
Other published documents...
Ch-7-Prob-14-New-박종우
2243 days ago by matrix
a1=vector([2,1,0,2]) x0=vector([4,9,2,5]) c1=a1.inner_product(x0) c2=a1.inner_product(a1) x1=c1/c2*a1 x2=x0-x1 print x1 print x2
(6, 3, 0, 6) (-2, 6, 2, -1)
(6, 3, 0, 6) (-2, 6, 2, -1)