question archive NEED PYTHON CODE For each of the following polynomials, apply either the Muller's method or the Bairstow's method to find all real or complex roots
Subject:Computer SciencePrice: Bought3
NEED PYTHON CODE
For each of the following polynomials, apply either the Muller's method or the Bairstow's method to find all real or complex roots. Analyze and contrast performance between the two methods. Plot the functions to choose root guesses appropriately. You can apply any simplifications you deem appropriate prior to applying the numerical methods.
1. f(x) = x^3 - x^2 + 2x - 2
2. f(x) = 2x^4 + 6x^2 + 8
3. f(x) = -2 + 6.2^x - 4x^2 + 0.7x^3
4. f(x) = x^4 - 2x^3 + 6x^2 - 2x + 5