You will write the power rule as code. A polynomial is stored as a list of coefficients, lowest power first, so [5, -4, 6] means .
The idea. The power rule sends the term to . The new list starts with a for the constant term, and a later step sets that constant from a point on the curve.
Your tasks.
antiderivative(coeffs). Return the list of the antiderivative with constant term 0.evaluate(coeffs, x). Return the value of the polynomial at x.curve_through(coeffs, x0, y0). Return the antiderivative list whose curve passes through (x0, y0).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 12 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.