Question: 1. Consider the following polynomial y = 2x-9x + 2 Create a user-defined function called 'polynomial' that accepts x value as an input and
1. Consider the following polynomial y = 2x-9x + 2 Create a user-defined function called 'polynomial' that accepts x value as an input and returns the y value of the polynomial. Use the function polynomial to calculate the y value when the user enters a value for x. 2. A rocket is launched vertically. The height of the rocket as a function of time is 9.8 2 h(t) + 125t + 500 for t > 0 Create a user-defined function called 'height' that accepts time as a parameter and returns the height of the rocket. Use the function height to calculate the height at each second for an interval of 1 t 10. Display time and height in a table with labeled column headings.
Step by Step Solution
3.44 Rating (147 Votes )
There are 3 Steps involved in it
1 Polynomial Function python def polynomialx return 2 x 3 9 x 2 2 Test the polynomial functi... View full answer
Get step-by-step solutions from verified subject matter experts
