diff --git a/README.md b/README.md index 553e685..a01bae1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # gravity -Modeling the trajectory of ball under the force of gravity +## Modeling the trajectory of ball under the force of gravity + +A Study of the Utmost Gravity + +A set of functions to calculate the effects of gravity. + diff --git a/gravity_of_errors.py b/gravity_of_errors.py index 9d23fc4..6958f4f 100644 --- a/gravity_of_errors.py +++ b/gravity_of_errors.py @@ -23,26 +23,4 @@ def xy(t, xy0, v0): (vx0,vy0)= v0 return x0 + vx0 * t, y0 + vy0 * t + 1./2 * g * t**2 -try: - xy0 += (0,0) -except (NameError, TypeError): - x0 = float(input("Initial position x0 = ")) - y0 = float(input("Initial position y0 = ")) - xy0 = (x0, y0) - -try: - v0 -except (NameError, TypeError): - vx0 = float(input("Initial speed vx0 = ")) - vy0 = float(input("Initial speed vy0 = ")) - v0 = (vx0, vy0) -finally: - try: - trajectory = [(t/2.,) + xy(t/2., xy0, v0) for t in range(8)] - except: - print("data has problems: " + str(xy0)) - - - -print(trajectory)