對數函數的圖形
Author: 藍邦偉  老師

對數函數的圖形

y=x

f(x)=log_{\sqrt{2}}x

f(x) = lg(x) / lg(sqrt(2))
g(x) = lg(x) / lg(cbrt(2))
C = Intersect(f, a, (2.000000000000332, 2.000000000000479))
D = Intersect(f, a, (3.9999999999999973, 3.999999999999998))
u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
b = 1.25 (slider from 1.1 to 2, step 0.05)
h(x) = lg(x) / lg(b)
text4: "g(x)=log_{" + b + "}x"
Q_2: 0.25 * Corner[2] + 0.75 * Corner[1]
Q_3: (x(Q_2), y(Corner[4]))
poly1, c, q_2, q_3, d = Polygon(Corner[1], Q_2, Q_3, Corner[4])
e = Segment(Q_2, Q_3)