指數函數的平移
Author: 藍邦偉  老師

指數函數的平移

y=2^x

Reset

f(x) = 2^(x)
A = Corner(1)
B = Corner(3)
C: (x(A), 0)
D: (x(B), 0)
E: (0, y(A))
F: (0, y(B))
u = Vector(C, D)
v = Vector(E, F)
h = -3 (slider from -5 to 5, step 1)
k = 2 (slider from -5 to 5, step 1)
h_2(x) = f(x) + k
q(x) = f(x - h) + k
g(x) = f(x - h)
G = Point(f)
d = Line(G, u)
H = Intersect(g, d, (-1.4745764221867024, 2.8787122309562037))
i = Segment(G, H)
j = OrthogonalLine(G, u)
I = Intersect(h_2, j, (1.5254235778175298, 4.8787122309646485))
l = Segment(I, G)
G_1: G + (h, k)
m = Segment(I, G_1)
n_1 = Segment(G_1, H)
case = 0 (slider from 0 to 3, step 1)
text2: "y=2^{(x" + (If[h < 0, "+", "-"]) + (abs(h)) + ")}"
text3: "y=2^x" + (If[k < 0, "-", "+"]) + (abs(k))
text4: "y=2^{(x" + (If[h < 0, "-", "+"]) + (abs(h)) + ")}" + (If[k < 0, "-", "+"]) + (abs(k))
Q_2: 0.8 * Corner[1] + 0.2 * Corner[2]
Q_3: (x(Q_2), y(Corner[3]))
poly1, a, q_2, q_3, b = Polygon(Corner[1], Q_2, Q_3, Corner[4])