Question: Complete the Python function that begins with the header shown below. The function computes the X and Y coordinates of points along the trajectory of
Complete the Python function that begins with the header shown below. The function computes
the X and Y coordinates of points along the trajectory of a projectile defined by the quadratic equation
y(x) =ax2+bx+c. The function is given a, b and c, which are the coefficients in the quadratic equation,
the horizontal, distance (along the x-axis) the projectile travels and the number of intervals of equal
width along the x-axis. Create a list of equally spaced X coordinates from x=0 to x=distance based on
the number of intervals. Create a list of Y coordinates, one Y coordinate for each X coordinate, using
the quadratic equation given above. Return the list of X coordinates followed by the list of Y
coordinates. This function is used in question 3.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
