三角形的面積
Author: 藍邦偉  老師

移動A,B,C與α觀察

三角形的面積

f(x) = 2.0 * sin(x) + cos(2.0 * x) + 2.0
A = (1.12, 1.54)
a: y = y(A)
B = Point(a)
C = (4.46, 6.5600000000000005)
b = Segment(C, A)
c = Segment(C, B)
d = Segment(A, B)
M_1 = Midpoint(A, C)
e: y = y(M_1)
H: (x(C), y(A))
N: (x(C), y(M_1))
M_2 = Midpoint(B, C)
多邊形1, n, m_1, c_1 = Polygon(M_1, C, N)
α = 0 rad (slider from 0 to 3.141592653589793, step 0.017453292519943295)
D = Rotate(M_1, α, M_1)
C'_1 = Rotate(C, α, M_1)
N'_1 = Rotate(N, α, M_1)
多邊形1', n', d_1, c' = Polygon(D, C'_1, N'_1)
多邊形2, m_2, c_2, n_1 = Polygon(C, N, M_2)
C' = Rotate(C, -(α), M_2)
N' = Rotate(N, -(α), M_2)
E = Rotate(M_2, -(α), M_2)
多邊形2', e_1, c'_1, n'_1 = Polygon(C', N', E)
h = Segment(A, D)
i = Segment(E, B)
g = Segment(C, N)
j = Segment(N, H)
k = Segment(C, D)
l = Segment(C, E)