Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Dev tries the rule with and . Find the true value of , the value from the rule, and how far apart they are.
An identity holds for every angle. np.allclose(left, right) tests arrays; np.max(np.abs(left - right)) is the worst miss. One counterexample proves an identity false. Avoid angles where for and . Random angles from rng.uniform(0, 2 * np.pi, n) test an identity everywhere.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. True value. .
Step 2. The rule. .
Step 3. The miss. .
Answer: against : a miss of . The rule is false.
Log in to join the discussion.
Loading…