Free fall with marks and endpoint

[color=#0000ff][i][color=#0000ff][i][color=#999999]This activity belongs to the GeoGebra book [url=https://www.geogebra.org/m/mes4bgft]The Domain of the Time[/url].[/color][/i][/color][/i][/color][br][br]This animation simulates free fall motion in [b]real time[/b], neglecting air resistance. The animation [b]does not use formulas[/b] (no equations or differential calculus), but only makes the necessary variations in the vectors that direct the motion.[br][br]This animation follows the same steps as the previous free fall simulation, but now we add marks every second of the fall (see details below).[br][br]As you can see, the results match reality quite well. The green marks represent the height reached by the blue point at each second according to the animation. [b]The orange marks indicate the theoretical height[/b] that the point should be at after each second.[br][br]Also, note that if there is no friction, in each passing second, the mass always covers the same height, regardless of the initial height (4.905 is half the constant value of |[color=#6aa84f][b]g[/b][/color]|, 9.81 m/s²):[br][br] After 1 second, it has fallen 4.905 m for 1[sup]2[/sup] (that is, 4.905 m).[br] After 2 seconds, it has fallen 4.905 m for 2[sup]2[/sup] (that is, 19.62 m).[br] After 3 seconds, it has fallen 4.905 m for 3[sup]2[/sup] (that is, 44.145 m).[br] After 4 seconds, it has fallen 4.905 m for 4[sup]2[/sup] (that is, 78.48 m).[br] ...[br][list][*]Note: There is an intuitive way (without resorting to differential calculus) to understand this. By definition of acceleration, we know that after t seconds, the velocity [color=#cc0000][b]v[/b][/color] is [color=#6aa84f][b]g[/b][/color] [i]t[/i]. But this is the final velocity, while the initial was 0. Since acceleration is constant, that is, equal at any instant, it is reasonable to think that the mass will take the same time as if it carried the average velocity of both: (0 + [color=#6aa84f][b]g[/b][/color] [i]t[/i])/2 = [color=#6aa84f][b]g[/b][/color]/2 [i]t[/i] (this general result is known as the [i]mean velocity theorem[/i]). Therefore, the distance traveled will be the module of this velocity multiplied by the elapsed time: |[color=#6aa84f][b]g[/b][/color]|/2 [i]t[/i][sup]2[/sup] = 4.905 [i]t[/i][sup]2[/sup].[br][br]In free fall from height [i]h[/i], we know that [color=#cc0000][b]v[/b][/color] = [b][color=#6aa84f]g[/color][/b] [i]t[/i] and we know that [i]h[/i] = |[color=#6aa84f][b]g[/b][/color]|/2 [i]t[/i][sup]2[/sup], by solving for [i]t[/i] in the second equation and substituting in the first, we find that the magnitude of that velocity is always[math]\left|v\right|=\sqrt{2\text{ }\left|g\right|\text{ }h}[/math][/*][/list]
After recording the time and executing the movement as shown in the previous activity, to register the marks, we add the variable:[b][br][br] last [/b]= 0 [br][br]and the lists:[br][br][b] reg [/b]= {0}[b][br] mark[/b] = {} [br][br]Now, we just need to add the following script to the slider [b]anima[/b]:[br][br][color=#0000ff] SetValue(last, reg(1))[br] [color=#0000ff]SetValue[/color](reg, If(floor(t)>last, Append(floor(t), reg), reg))[br] [color=#0000ff]SetValue[/color](mark, If(floor(t)>last, [color=#0000ff]Append[/color](y(M), mark), mark))[/color][br][br]The sequence of theoretical marks (in orange) is:[br] [b]marksT[/b] = Sequence(Segment((x(P), y(P) - 4.905k²), (0, y(P) - 4.905k²)), k, 1, Length(mark))[br][br]The sequence of animation marks (in green) is:[br] [b]marks[/b] = Sequence(Segment((x(P), mark(k)), (x(P) + x(Corner(2) - Corner(1)) / 20, mark(k))), k, 1, Length(mark))[br][br]And the sequence for the seconds is:[br] [b]marksN[/b] = Sequence(Text("" reg(k) + "''", (x(P) + x(Corner(2) - Corner(1)) / 18, mark(k))), k, 1, Length(mark))[br][br][br][b]SCRIPT FOR SLIDER anima[/b][br][br][color=#cc0000][color=#cc0000]# Calculate the elapsed seconds dt; add one second if t1(1) < tt[/color][/color][br][color=#999999]SetValue(tt, t1(1))[br]SetValue(t1, First(GetTime(), 3))[br]SetValue(dt, (t1(1) < tt) + (t1(1) − tt)/1000)[/color][br][br][color=#cc0000]# Register passing through an integer number of seconds and the corresponding height[/color][br][color=#0000ff]SetValue(last, reg(1))[br][color=#0000ff]SetValue[/color](reg, If(floor(t) > last, Append(floor(t), reg), reg))[br][color=#0000ff]SetValue[/color](mark, If(floor(t) > last, [color=#0000ff]Append[/color](y(M), mark), mark))[/color][br][br][color=#cc0000]# Move M and control the endpoint[/color][br][color=#999999][color=#999999]SetValue[/color](v, v + dt g)[br][color=#999999]SetValue[/color](M, M + dt v)[br][/color][color=#0000ff]StartAnimation(anima, y(M) > 0)[/color][color=#999999][br][br][br][br][br][br][color=#999999][color=#999999][color=#0000ff][color=#0000ff][color=#999999][color=#999999]Author of the activity and GeoGebra construction: [/color][/color][/color][color=#0000ff][color=#999999][color=#999999][url=https://www.geogebra.org/u/rafael]Rafael Losada[/url].[/color][/color][/color][/color][/color][/color][/color]

Information: Free fall with marks and endpoint