You will write the cover-up rule as code for a fraction with two different roots. Then you will rebuild the fraction from its parts and write the antiderivative.
The idea. For , hide the factor and put in the rest to find . In the same way, hide and put to find . The antiderivative is .
Your tasks.
cover_up(p, r, s). Return the pair (A, B), where p is a function of x.split_value(A, B, r, s, x). Return the value of .antiderivative(A, B, r, s, x). Return .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…