Computational Physics, Linear Algebra, Python, Math, Matrix.
our angle from degrees to radians with the function np.radians(). The effect of a rotation matrix on a re-scaled circle x = np.linspace(-3, 3, 100000) y = 2*np.sqrt(1-((x/3)**2)) x1 = x*np.cos(np.radians(45)) - y*np.sin(np.radians(45)) y1 = x*np.sin(np.radians(45)) + y*np.cos(np.radians(45)) x1_neg