You will write three functions for the conic , with its focus at the pole. Angles are in degrees.
The idea. The distance from the focus in the direction is . The curve is an ellipse when , a parabola when and a hyperbola when . For an ellipse the semi-major axis is .
Your tasks.
r_conic(l, e, deg). Return , or None when .conic_name(e). Return "ellipse", "parabola" or "hyperbola".semi_major(l, e). Return for an ellipse, and None otherwise.Run your code once to unlock the worked solution.
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 12 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.