Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started