Q1. Suppose deg is an angle in degrees. Write down the NumPy code that computes the counterclockwise rotation matrix. Don't forget to convert the angles into radians when necessary.
Use Python.
Q1. Suppose deg is an angle in degrees. Write down the NumPy code that computes the counterclockwise rotation matrix. Don't forget to convert the angles into radians when necessary.
def rotate(deg):
Q2. Let x be a
y = ...
Q3. Let x be a vector. How do you find a vector v in the same direction as x but with |v| = 1.
v = ...
Q4. A hyperplane in 2D is the same as a line. A hyperplane is defined by a normal vector w and a bias scalar b. Write down the expression that defines points on the line that is the hyperplane in 2D defined by (w, b).
{ x : ... }
Q5. Given a vector x, and a hyperplane P defined by (w, b). Describe how to compute the point v that is the projection of x on to the plane P.
Step by step
Solved in 3 steps with 1 images