We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0e5071 commit 894fa7fCopy full SHA for 894fa7f
physics/horizontal_projectile_motion.py
@@ -116,10 +116,7 @@ def test_motion() -> None:
116
# Print results
117
else:
118
print()
119
- h_dis = str(horizontal_distance(init_vel, angle))
120
- v_dis = str(max_height(init_vel, angle))
121
- t_time = str(total_time(init_vel, angle))
122
print("Results: ")
123
- print(f"Horizontal Distance: {h_dis} [m]")
124
- print(f"Maximum Height: {v_dis} [m]")
125
- print(f"Total Time: {t_time} [s]")
+ print(f"Horizontal Distance: {str(horizontal_distance(init_vel, angle))} [m]")
+ print(f"Maximum Height: {str(max_height(init_vel, angle))} [m]")
+ print(f"Total Time: {str(total_time(init_vel, angle))} [s]")
0 commit comments