Question: Question 6 Write a function polynomial that takes an interval x and a list of coefficients c, and returns the interval containing all values of

Question 6 Write a function polynomial that takes an interval x and a list of coefficients c, and returns the interval containing all values of f(t) for t in interval x , where: f(t) C[k-1] * pow(t, k-1 ) + clk-2] * pow(t, k-2 ) + + cl0j * 1 = Like quadratic, your polynomial function should return the smallest such interval, one that does not suffer from the multiple references problem. Hint: You can approximate this result. Try using Newton's method def polynomial(x, c): ""Return the interval that is the range of the polynomial defined by coefficients c, for domain interval x. str interval(polynomial(interval(0, 2), [-1, 3, -21)) -3 to 0.125' str_interval(polynomial(interval(1, 3), [1, -3, 21)) 0 to 10' >>str_interval(polynomial(interval(0.5, 2.25), [1, 24, -, 3)) 18.0 to 23.0 "YOUR CODE HERE k" Question 6 Write a function polynomial that takes an interval x and a list of coefficients c, and returns the interval containing all values of f(t) for t in interval x , where: f(t) C[k-1] * pow(t, k-1 ) + clk-2] * pow(t, k-2 ) + + cl0j * 1 = Like quadratic, your polynomial function should return the smallest such interval, one that does not suffer from the multiple references problem. Hint: You can approximate this result. Try using Newton's method def polynomial(x, c): ""Return the interval that is the range of the polynomial defined by coefficients c, for domain interval x. str interval(polynomial(interval(0, 2), [-1, 3, -21)) -3 to 0.125' str_interval(polynomial(interval(1, 3), [1, -3, 21)) 0 to 10' >>str_interval(polynomial(interval(0.5, 2.25), [1, 24, -, 3)) 18.0 to 23.0 "YOUR CODE HERE k
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
