多項式(23)
Author: 藍邦偉　老師

設A(6,0),B(-6,0),S(0,4),Q(t,2),P(t,0)

設Γ:y=a(x+6)(x-6),將(0,4)代入

⇒4=a×6×(-6)⇒a=-\frac{1}{9}

⇒y=-\frac{1}{9}(x²-36)=-\frac{1}{9}x²+4

Q(t,2)代入，得2=-\frac{1}{9}t²+4⇒t²=18⇒t=±3\sqrt{2}

⇒\overline{AP}=6-3\sqrt{2}

n = 0 (slider from 0 to 7, step 1)
A = (-1.78, -1.18)
B: A + (1.6, 0)
D: A + (0, 0.6)
C: B + D - A
poly1, a, b, c, d = Polygon(A, B, C, D)