Question: Help me write a python code It is required to use these toolboxes Math, cmath, numpy, maltplotlib Thabk you!!! Task 1 a ) Define an
Help me write a python code
It is required to use these toolboxes
Math, cmath, numpy, maltplotlib
Thabk you!!! Task
a Define an array named theta that contains values starting at zero and ending with with increments of
b Define an array named where for each value of theta.
c Define an array named ind by using the numpy.where command to determine the indices of all elements of that are greater than
d Define a logical array named ind containing logical indices to all elements of that are in the range from to inclusive of those bounds
e Define a logical array named ind containing logical indices to all elements of that are less than
f Plot as a function of theta, with values of greater than as black dots, values of in the inclusive range from to as red dots, and values of less than as blue dots.
g Label the plot axes and title the plot appropriately. Set the axis limits so that the velocity data is not located on the edges of the plot.
MAE
FALL
Task
The horizontal position of an object undergoing damped oscillation is given by:
where is given in seconds and is given in units of meters.
a Define an arras named that contains values starting at and ending with seconds with increments of seconds.
b Define an array named alpha that contains values from to in increments of
c Using nested for loops, determine the motion of the object over time using the array defined in part
a at each value of alpha defined in part b and plot the horizontal position of the object as a function of time for all values of alpha
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
