橢圓的圖形(2)
Author: 藍邦偉　老師

拉動A,B兩點觀查橢圓焦點F_1,F_2的位置

橢圓的圖形(2)

F_1

F_2

$ B $

$ A $

B = Point(yAxis)
A = Point(xAxis)
c: sqrt(abs(x(A)^(2) - y(B)^(2)))
F_1 = If(abs(x(A)) > abs(y(B)), (c, 0), (0, c))
F_2 = If(abs(x(A)) > abs(y(B)), (-c, 0), (0, -c))
d = Ellipse(F_2, F_1, B)
A_0: 1 / 2 * (Corner[1] + Corner[3])
u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))