np.array
), and with the generation of simple plots
using matplotlib.pyplot
.
Here you can find additional information on ...
P_0 = [0, 0]
and
P_1 = [2, 1]
.
Each point should be expressed as a Python
list([a,b])
np.array
, 3
to the
first coordinate, and 1
to the second, P_0
to the original
P_1
, and on the same figure also plots a line between the
shifted values. P_0 = [0, 0]
and
P_1 = [2, 1]
, and calculates the vector
from P_0
to P_1
.
Then write a Python-function that:
R = np.array([[np.cos(alpha), -np.sin(alpha)], [np.sin(alpha), np.cos(alpha)]])If you want to experiment a bit with plots, you can try to
P_0
to P_1
, plot
parameter linewidth=...
)