Ch-1.2-Final-이태희

1882 days ago by matrix

x=vector([1, 2, -2]) y=vector([-2, 1, 2]) z=x.inner_product(y) xn=x.norm() yn=y.norm() print z/(xn*yn) 
       
-4/9
-4/9