my rotation matrix for numpy (python) isn't working
numpy, python
Solution
As the python documentation for `cos` and `sin` point out, the arguments should be in radians, not degrees.
You can use the `math.radians` function to convert degrees to radians.
Problem
i was making a program to display matrices under various transforms, and all of them work except for my rotation matrix. ive tried fiddling with it, but nothing seems to work ``` 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") ```