我正在编写一个程序,用于在各种变换下显示矩阵,除了我的旋转矩阵之外,所有矩阵都能正常工作。我尝试过调整它,但似乎没有任何效果。
y = input("how many degrees do you want to rotate the shape around the origin?: ")
j = array([(cos(int(y)), -sin(int(y))), (sin(int(y)), cos(int(y)))])
print(j.dot(w))
input("enter to exit")