mirror of
https://github.com/NotAShelf/projectile-simulation.git
synced 2024-11-22 13:20:47 +00:00
fix tests
This commit is contained in:
parent
4252b63086
commit
1a158d8b6d
1 changed files with 2 additions and 2 deletions
|
@ -115,6 +115,6 @@ class ProjectileSimulation:
|
||||||
plt.show()
|
plt.show()
|
||||||
|
|
||||||
def print_range(self):
|
def print_range(self):
|
||||||
"""Prints the range of the projectile."""
|
"""Returns the range of the projectile as a string."""
|
||||||
range_projectile = self.x[-1]
|
range_projectile = self.x[-1]
|
||||||
print(f"Range of projectile: {range_projectile:.2f} m")
|
return f"Range of projectile: {range_projectile:.2f} m"
|
||||||
|
|
Loading…
Reference in a new issue