A = np.array([1,3])
B = np.array([3,1])
A.dot(B)/(np.linalg.norm(A)*np.linalg.norm(B))
np.arccos(0.5999999999999999)
np.rad2deg(0.9272952180016124)
计算余弦的夹角
最新推荐文章于 2021-06-20 22:08:13 发布
A = np.array([1,3])
B = np.array([3,1])
A.dot(B)/(np.linalg.norm(A)*np.linalg.norm(B))
np.arccos(0.5999999999999999)
np.rad2deg(0.9272952180016124)