Question: IN python Compute a polynomial via a product Given n+1 roots o,l,.., m of a polynomial p(x) of degree n+1, p(x) can be computed by

IN pythonIN python Compute a polynomial via a product Given n+1 roots o,l,..,

Compute a polynomial via a product Given n+1 roots o,l,.., m of a polynomial p(x) of degree n+1, p(x) can be computed by 4 points p(x) = (x-ri) = (x_0)(x-n) . . . (x-m-)(x-m). Write a function poly( roots,x ) that takes a list roots of the roots and x as arguments and returns p(x) root s1 = [-1,1,2 ] | poly( ro ot s 1 , x ) This assignment is based on Langtangen, Exercise 3.10.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!