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

$ (1) 開口向下⇒a<0 $

$ 與x軸交於兩點⇒D>0 $

$ (2)a-b+c=f(-1)>0 $

$ (3)因為(-3,0)與(5,0)的中點是(1,0) $

$ 所以頂點座標為(1,6) ,即f(1)=6$

(4) x=1為對稱軸,所以f(0)=f(2),f(-1)=f(3)

$ f(-2)=f(4) $

(5)f(2)>f(3)

(1,6)

$ (2,f(2)) $

$ (0,f(0)) $

(3,f(3))

(4,f(4))

$ (-1,f(-1)) $

(-2,f(-2))

A = (-5, 0)
C = (-3, 0)
B = (5, 0)
D = (1, 6)
f = Polynomial({B, C, D})
E = Point(yAxis)
v = Vector(E, E + (0, 9.5))
u = Vector(A, B + (1.7, 0))
n = 0 (slider from 0 to 8, step 1)
F = (1, 0)
a = Segment(D + (0, 1.3), F - (0, 2))
G: (0, f(0))
H: (2, f(2))
I: (-1, f(-1))
K: (3, f(3))
J: (-2, f(-2))
L: (4, f(4))
b = Segment(G, H)
c = Segment(I, K)
d = Segment(J, L)
M = (-11.388365543854373, 3.818485805167237)
N: M + (2.7, 0)
Q: M + (0, 0.7)
R: N + Q - M
poly1, m, n_1, r, q = Polygon(M, N, R, Q)