Ch-1.2-New2-이기연

1895 days ago by matrix

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