C1 W3 Exercise 3

How can I find cos(theta) and sin(theta) for the transformation matrix?

To rotate a vector in the plane by an angle of πœƒ (radians), the matrix related to this transformation is given by:

𝑀=[cosπœƒ βˆ’sinπœƒ]
[sinπœƒ cosπœƒ]

Those are known, well-defined functions, right? If you know the value of \theta then np.sin and np.cos will give you the value of the sine and cosine of \theta.