You will write a tester that checks a claimed identity at every whole angle from to , and use it on a true claim and a false one.
Your tasks.
holds, return True if left(A) and right(A) differ by less than 1e-9 at every whole angle from to , else False. The functions take the angle in radians.first_failure, return the first whole angle in degrees, from up, where the two sides differ. Return None if there is none.sec2 and one_plus_tan2 so that holds(one_plus_tan2, sec2) tests .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…