Two ideas of this lesson are easy to test in code: the sum of , and the coefficient of in for an index that is not a whole number. A falling product replaces the factorial.
Your tasks.
weighted, return , using a loop.closed, return the closed form .series_coefficient, return the coefficient of in as a Fraction: multiply for from 0 to .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…