Question: Write a python script Required Libraries: math The velocity of an object is a function of time ( t ) and is given by the
Write a python script
Required Libraries:
math
The velocity of an object is a function of time and is given by the function:
where has units of seconds.
a Determine the values of velocity for and sec using Python command window as a calculator. Round the values to digits after the decimal place and list the values in a comment or comments in the Task section of your Python file. Make sure to explain the values in the comments
b Define an array named that contains values of time starting with seconds and ending with seconds with increments of seconds.
c Using a for loop, determine the velocity of the object at each value of and store the result in an array named velocity. Check to make sure that the first five elements in velocity equal those determined earlier using a calculator.
d Plot velocity as a function of time using a solid blue line. Label the plot axes and title the plot appropriately.
e Define variables for velocities at positions and of your velocity index and display as an output, comparing your results in the command window with the results from part a
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
