You will start from one ratio, rebuild the triangle and find the others, then use it for a slope.
The idea. If , take the opposite side as and the hypotenuse as . The adjacent side is .
Your tasks.
from_sine, return the pair (cos_a, tan_a) for .from_cosine, return the pair (sin_a, tan_a) for .slope_tan to the tangent of its slope angle.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…