Optional Project 20: Finding the Foci of an Ellipse
Example 1:
Example 2:
Optional Project 20: Variables 'h', 'k', 'a', 'b' have been initialized.
h is the x-coordinate of the center of the ellipse (1 for both examples)
k is the y-coordinate of the center of the ellipse (-2 for the first example and 1 for the second example)
a is the "horizontal radius" of the ellipse (2 for the first example and 4 for the second example)
b is the "vertical radius" of the ellipse (4 for the first example and 2 for the second example)
Task: Appropriately initialize the values of 'fociX1', 'fociY1', 'fociX2', 'fociY2'. These variables represent the coordinates for the foci of the ellipse.
Note: foci1 should either be below (smaller y-coordinate) or the left (smaller x-coordinate) of foci2. This is shown in the examples above.
**If your code works for 5 test cases, you can enter your e-mail address
Universal Computational Math Methods:
pow(5,2) returns 25.0
abs(-3.0) returns 3
sqrt(49.0) returns 7.0