MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / test_motion

Function test_motion

physics/horizontal_projectile_motion.py:138–147  ·  view source on GitHub ↗

Test motion >>> test_motion()

()

Source from the content-addressed store, hash-verified

136
137
138def test_motion() -> None:
139 """
140 Test motion
141
142 >>> test_motion()
143 """
144 v0, angle = 25, 20
145 assert horizontal_distance(v0, angle) == 40.97
146 assert max_height(v0, angle) == 3.73
147 assert total_time(v0, angle) == 1.74
148
149
150if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

horizontal_distanceFunction · 0.85
max_heightFunction · 0.85
total_timeFunction · 0.85

Tested by

no test coverage detected