You will write functions for the six trigonometric ratios of an angle and check that a ratio does not change with size.
The idea. For an acute angle, , and . The other three are their reciprocals.
Your tasks.
hypotenuse, return the hypotenuse from the two shorter sides.six_ratios, return a dictionary with the keys "sin", "cos", "tan", "cosec", "sec" and "cot".same to True when the triangle with sides opp, adj and the one with sides 5 * opp, 5 * adj give the same sine (use math.isclose).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…