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 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 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
Get step-by-step solutions from verified subject matter experts
