A polynomial is stored as a list of coefficients, from the highest power down. You will work out its values, find its whole-number zeroes, and trap the zeroes that are not whole numbers between two whole numbers.
The idea. Horner's method: start at , and for each coefficient multiply by and add the coefficient. A zero lies between and when and have opposite signs.
Your tasks.
value, return by Horner's method.zeroes with the whole numbers from to where is .between with each from to where changes sign between and .Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…
With Standard, you also open 10 more problems, 3 Python labs and 1 extra course. Everything you have used here stays free, always.