Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Represent a polynomial p(x)=c0+c1x+c2x2++cnxn as a list of coefficients [c0,c1,,cn]. Write a function called poly_critical which takes 4 input parameters p,a,b and N where: -
Represent a polynomial p(x)=c0+c1x+c2x2++cnxn as a list of coefficients [c0,c1,,cn]. Write a function called poly_critical which takes 4 input parameters p,a,b and N where: - p is a Python list of numbers representing a polynomial p(x) - a and b are numbers defining an interval [a,b] - N is a positive integer The function poly_critical implements N iterations of the bisection method applied to the equation p(x)=0 and returns an approximation of a critical point x where p(x)=0 for x[a,b]. For example, if p=[1,1,1,0,0,1] (which represents p(x)=1x+x2+x5),a=0,b=1 and N=10 then the function returns which approximates a solution of 5x4+2x1=0. The function poly_critical may terminate in 4 ways: 1. If len(p)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started