coordinate_1 = np.array([[(np.cos(0) * np.cos(alpha_radian),
np.cos(0) * np.sin(alpha_radian) * np.sin(
alpha_radian) - np.sin(0) * np.cos(alpha_radian),
np.cos(0) * np.sin(alpha_radian) * np.cos(alpha_radian))],
[np.sin(0) * np.cos(alpha_radian),
(np.sin(0) * np.sin(alpha_radian) * np.sin(
alpha_radian)) - (
np.cos(0) * np.cos(alpha_radian)),
(np.sin(0) * np.sin(alpha_radian) * np.cos(
alpha_radian)) - (
np.cos(0) * np.sin(alpha_radian))],
[-np.sin(alpha_radian),
np.cos(alpha_radian) * np.sin(alpha_radian),
np.cos(alpha_radian) * np.cos(alpha_radian)]])
print(coordinate_1)
print(type(coordinate_1))
并输出
[list([(0.7071067811865476, 0.4999999999999999, 0.5)])
list([0.0, -0.7071067811865476, -0.7071067811865475])
list([-0.7071067811865475, 0.5, 0.5000000000000001])]
<class 'numpy.ndarray'>
为什么矩阵输出总是在开始矩阵处包含一个“列表” ,如何将它们转换为浮点数,我可以进行一个简单的矩阵乘法。
小唯快跑啊
相关分类