最小作用を探せ（上級編）

出発点

到着点

上級編では「出発点」「到着点」の位置と、
重力加速度の大きさが調節できるように
なっています。

g = 1 (slider from 0 to 1, step 0.01)
a = Segment((1.0, 0.0), (1.0, 8.0))
g_2 = Segment((7.0, 0.0), (7.0, 8.0))
H = Point(g_2)
b = Segment((2.0, 0.0), (2.0, 8.0))
c = Segment((3.0, 0.0), (3.0, 8.0))
d = Segment((4.0, 0.0), (4.0, 8.0))
e = Segment((5.0, 0.0), (5.0, 8.0))
f = Segment((6.0, 0.0), (6.0, 8.0))
h = Segment((8.0, 0.0), (8.0, 8.0))
i = Segment((9.0, 0.0), (9.0, 8.0))
j = Segment((10.0, 0.0), (10.0, 8.0))
k = Segment((0.0, 0.0), (0.0, 8.0))
A = Point(k)
B = Point(a)
C = Point(b)
D = Point(c)
E = Point(d)
F = Point(e)
G = Point(f)
I = Point(h)
J = Point(i)
AA = Point(j)
l = Segment(A, B)
m = Segment(C, B)
n = Segment(C, D)
p = Segment(E, D)
q = Segment(E, F)
r = Segment(G, F)
s = Segment(G, H)
t = Segment(I, H)
a_1 = Segment(I, J)
b_1 = Segment(AA, J)
c_1 = Segment((0.5, 0.0), (0.5, (y(A) - y(B))^(2.0)))
d_1 = Segment((1.5, 0.0), (1.5, (y(C) - y(B))^(2.0)))
e_1 = Segment((2.5, 0.0), (2.5, (y(C) - y(D))^(2.0)))
f_1 = Segment((3.5, 0.0), (3.5, (y(E) - y(D))^(2.0)))
g_1 = Segment((4.5, 0.0), (4.5, (y(E) - y(F))^(2.0)))
h_1 = Segment((5.5, 0.0), (5.5, (y(G) - y(F))^(2.0)))
i_1 = Segment((6.5, 0.0), (6.5, (y(G) - y(H))^(2.0)))
j_1 = Segment((7.5, 0.0), (7.5, (y(I) - y(H))^(2.0)))
k_1 = Segment((8.5, 0.0), (8.5, (y(I) - y(J))^(2.0)))
l_1 = Segment((9.5, 0.0), (9.5, (y(AA) - y(J))^(2.0)))
m_1 = Segment((1.0, 0.0), (1.0, -(g) * y(B)))
n_1 = Segment((2.0, 0.0), (2.0, -(g) * y(C)))
p_1 = Segment((3.0, 0.0), (3.0, -(g) * y(D)))
q_1 = Segment((4.0, 0.0), (4.0, -(g) * y(E)))
r_1 = Segment((5.0, 0.0), (5.0, -(g) * y(F)))
s_1 = Segment((6.0, 0.0), (6.0, -(g) * y(G)))
t_1 = Segment((8.0, 0.0), (8.0, -(g) * y(I)))
b_2 = Segment((9.0, 0.0), (9.0, -(g) * y(J)))
u: c_1 + d_1 + e_1 + f_1 + g_1 + h_1 + i_1 + j_1 + k_1 + l_1
a_2 = Segment((7.0, 0.0), (7.0, -(g) * y(H)))
v: m_1 + n_1 + p_1 + q_1 + r_1 + s_1 + a_2 + t_1 + b_2
w: u - v
テキスト2: "位置エネルギーの総和=" + v
テキスト3: "作用=運動エネルギー - 位置エネルギー=" + w
テキスト1: "運動エネルギーの総和=" + u
K: (2.0, 0.8 * y(A) + 0.2 * y(AA) + 4.0 * g)
U: (3.0, 0.7 * y(A) + 0.3 * y(AA) + 5.25 * g)
V: (4.0, 0.6 * y(A) + 0.4 * y(AA) + 6.0 * g)
W: (5.0, 0.5 * y(A) + 0.5 * y(AA) + 6.25 * g)
Z: (6.0, 0.4 * y(A) + 0.6 * y(AA) + 6.0 * g)
A_1: (7.0, 0.3 * y(A) + 0.7 * y(AA) + 5.25 * g)
B_1: (8.0, 0.2 * y(A) + 0.8 * y(AA) + 4.0 * g)
C_1: (9.0, 0.1 * y(A) + 0.9 * y(AA) + 2.25 * g)
D_1: (1.0, 0.9 * y(A) + 0.1 * y(AA) + 2.25 * g)
正解の表示 = false