You will write a function for the left side of a quadratic equation, use it to test roots, and pick the roots out of a list.
The idea. A number is a root of when the left side is there. A computer works with decimals, so test whether the value is very close to .
Your tasks.
value, return for the given .is_root, return True when the value is closer to than 0.000000001.roots to the numbers of candidates that are roots of , in the same order.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 11 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.