Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

5. Discuss the role of the Web in career management.

Answered: 1 week ago