A formula is an identity when it holds at every angle. The computer can test five hundred pairs of angles in a moment. You will write the formula for , find its largest error, and count how often the false rule misses.
The idea. A true identity misses only by the computer's rounding, about . A false rule misses by a lot.
Your tasks.
sin_sum(x, y) return .worst to the largest difference between sin_sum(x, y) and math.sin(x + y) over all the pairs.broken to the number of pairs where and differ by more than .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 4 more problems and 1 Python lab. Everything you have used here stays free, always.