指數與對數(3)
Author: 藍邦偉　老師

$ f(k_1)=a×1.2^{k_1} =40000$

$ f(k_2)=a×1.2^{k_2}=80000 $

f(k_3)=a×1.2^{k_3}=160000

⇒\frac{f(k_2)}{f(k_1)}=1.2^{k_2-k_1}=2

⇒\frac{f(k_3)}{f(k_2)}=1.2^{k_3-k_2}=2

⇒k_2-k_1=k_3-k_2

⇒k_3=2k_2-k_1

n = 1 (slider from 1 to 9, step 1)
A = (-1.9, 0.32)
B: A + (0.7, 0)
C: A + (0, 0.5)
D: B + C - A
poly1, a, b, c, d = Polygon(A, B, D, C)