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π]

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.