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
hw02.py that contains the following functions.
Your functions must be named exactly as written below
Include an informative standard-conforming docstring for each function
All vectors and matrices must be numpy arrays (ndarray)
dot_product
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
cross_product
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 3-element 1D array per the definition of the cross product
matrix_vector_product
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 loop(s) to compute the matrix-vector product
plate_velocity
Returns a vector that is the velocity of the plate at the center of plate B, given by Equation (1) with the following input parameters:
rB- position vector from point O to the center of plate B
- angular velocity of the plate about the z-axis
The following function signature must be used:
vb= plate_velocity(rb, w):
You must use the functions described above to compute the plate velocity as appropriate
angular_momentum
 Deliverables Create a file named hw02.py that contains the following functions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!