Question: Deliverables Create a file named hw 0 2 . py that contains the following functions. Your functions must be named exactly as written below Include
Deliverables
Create a file named
hwpy that contains the following functions.
Your functions must be named exactly as written below
Include an informative standardconforming docstring for each function
All vectors and matrices must be numpy arrays ndarray
dotproduct
Returns a scalar that is the dot product of two equal size input vectors
You may assume that the vectors are of equal size; no error checking is required
You must use a loop to compute the dot product
crossproduct
Returns a vector that is the cross product of two equal size input vectors
You may assume that the vectors are of equal size; no error checking is required
It must return a element array per the definition of the cross product
matrixvectorproduct
Returns a vector that is the product of a matrix and a vector
You may assume that the matrix and vector are compatible for multiplication; no error checking is required
You must use loops to compute the matrixvector product
platevelocity
Returns a vector that is the velocity of the plate at the center of plate B given by Equation with the following input parameters:
position vector from point to the center of plate
angular velocity of the plate about the axis
The following function signature must be used:
platevelocityrb w:
You must use the functions described above to compute the plate velocity as appropriate
angularmomentum
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
