Home / Expert Answers / Computer Science / mathlab-write-a-function-called-rootplot-that-finds-the-roots-of-a-polynomial-and-then-plots-both-pa787

(Solved): MATHLAB Write a function called rootplot that finds the roots of a polynomial, and then plots both ...



MATHLAB

Write a function called rootplot that finds the roots of a polynomial, and then plots both the polynomial and its roots.

The
Write a function called rootplot that finds the roots of a polynomial, and then plots both the polynomial and its roots. The function should take 2 inputs: a vector of polynomial coefficients, and a vector domain at which to evaluate and plot the polynomial. The function should have 2 outputs: the root(s) of the polynomial, and the polynomial evaluated at the input domain vector. The function should also plot the polynomial with a black line, and the roots with red circles.


We have an Answer from Expert

View Expert Answer

Expert Answer



Here's an example implementation of the `rootplot` function in Python, which uses NumPy...
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe