Question: create a script called particle_motion.py The curvilinear motion (in meters) of a particle is defined by the following parametric equations: x = 52t - 9t^2

create a script called particle_motion.py

The curvilinear motion (in meters) of a particle is defined by the following parametric equations:

x = 52t - 9t^2 and y = 125 - 5t^2

The velocity of the particle (in meters/second) is given by:

v = sqrt v_x^2 + v_y^2, vx=dx/dt and vy= dy/dt

For 0 t 5 s make two plots...

  • One that shows the position of the particle (x,y)
  • A second that shows the velocity of the particle as a function of time
  • The plots should be vertically stacked with the position plot on top
  • Use .subplots() when creating the figure in this script
  • Use the built-in min() function to determine the lowest velocity
  • Also use the .index() list method together with the min() function to find the time of the minimum velocity
  • Use this information to also find the x and y positions that correspond to the minimum velocity
  • Plot details
    • 0.1 second time step
    • Stacked subplots: position plot on top and velocity plot on the bottom
    • Appropriate axes labels with units on both plots
    • Descriptive title above the top plot only
    • Plot line widths of 2
    • Position plot line blue and velocity plot line red
    • Red circles (use 'ro') at the location of the minimum velocity...
      • On the position subplot
      • On the velocity subplot
  • Printed results
    • Use nicely formatted print() statements to display...
      • The minimum velocity
      • Time that the minimum velocity occurs
      • The x,y location at which the minimum velocity occurs
    • Display each of the results...
      • With exactly 2-decimal places
      • Include the appropriate units

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!