You will write functions that find the focal length, the eccentricity and the latus rectum of an ellipse and of a hyperbola from and . The checker uses the curves of the lessons.
The idea. For an ellipse . For a hyperbola . In both cases and the latus rectum is . The asymptotes of the hyperbola have slope .
Your tasks.
ellipse_parts(a, b) to return (c, e, latus_rectum).hyperbola_parts(a, b) to return (c, e, latus_rectum, asymptote_slope).focal_distances_ellipse(a, b, x) to return (PF1, PF2) for the point of the ellipse with abscissa x, where F1 is the focus on the left and F2 the focus on the right.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…