(Solved) : 9000 Dolci 2 Oy Ais Q2 Python Question Point Question Graphically Show Dot Product Vector Q44084644 . . .
please solve these using python.
9000) DOLCI 2 OY AIS. Q2. Python Question. The point of this question is to graphically show that the dot product of a vector with a unit vector has maximum amplitude when the two vectors are collinear. Consider a 2-D vector: Ā= 3i + 37 a. What is the angle that A makes with the x axis? b. Now consider a 2D unit vector at an angle with the positive x axis. You need to create this vector as a function of the angle e. c. Create a for loop in python which cycles through various values of angle e. Start from e=0, all the way to 360 degrees with an increment of 1 degree. For each iteration in the loop (and, therefore, each value of angle e), you need to create the above unit vector. d. Inside the loop, calculate the dot product of A with the unit vector. Save the result in a variable which has the same size as e. Plot the dot product as a function of e. The plot should show a maximum value at the same angle as the answer to part a. What’s the relation between this maximum value and the magnitude of A? Show transcribed image text 9000) DOLCI 2 OY AIS. Q2. Python Question. The point of this question is to graphically show that the dot product of a vector with a unit vector has maximum amplitude when the two vectors are collinear. Consider a 2-D vector: Ā= 3i + 37 a. What is the angle that A makes with the x axis? b. Now consider a 2D unit vector at an angle with the positive x axis. You need to create this vector as a function of the angle e. c. Create a for loop in python which cycles through various values of angle e. Start from e=0, all the way to 360 degrees with an increment of 1 degree. For each iteration in the loop (and, therefore, each value of angle e), you need to create the above unit vector. d. Inside the loop, calculate the dot product of A with the unit vector. Save the result in a variable which has the same size as e.
Plot the dot product as a function of e. The plot should show a maximum value at the same angle as the answer to part a. What’s the relation between this maximum value and the magnitude of A?
Expert Answer
Answer to 9000) DOLCI 2 OY AIS. Q2. Python Question. The point of this question is to graphically show that the dot product of a v…
OR