Skip to content

Commit 894fa7f

Browse files
authored
Update horizontal_projectile_motion.py
1 parent c0e5071 commit 894fa7f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

physics/horizontal_projectile_motion.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,7 @@ def test_motion() -> None:
116116
# Print results
117117
else:
118118
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))
122119
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]")
120+
print(f"Horizontal Distance: {str(horizontal_distance(init_vel, angle))} [m]")
121+
print(f"Maximum Height: {str(max_height(init_vel, angle))} [m]")
122+
print(f"Total Time: {str(total_time(init_vel, angle))} [s]")

0 commit comments

Comments
 (0)