Question: Please help me.. I attempted to do this problem for two hours but still not getting anyway. Thank you Implement a deflation routine in MATLAB
Please help me.. I attempted to do this problem for two hours but still not getting anyway.
Thank you
Implement a deflation routine in MATLAB that uses a combination of Newton's Method and Horner's Algorithm (in appropriate places) to find all the real roots of a given polynomial. Your function should have the input and output arguments: [roots] = Deflation(A, x0, M, ) where roots is a vector of computed roots of the given function f(x), A gives the vector of coefficients of f(x) in decreasing order, M is the maximum number of iteration in Newton's Method, and is the machine precision. Use the Deflation function to find all the real roots of the polynomial f(z) = z^4 - 10z^3 + 35z^2 - 50z + 24. output the roots on the screen. (Solution: 1, 2, 3, 4)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
