From bc31e3fa7160f11b98d4dcca50c7e89faf61480b Mon Sep 17 00:00:00 2001 From: avivfaraj <73610201+avivfaraj@users.noreply.github.com> Date: Sun, 5 Sep 2021 12:56:31 -0400 Subject: [PATCH] imported radians from math --- physics/horizontal_projectile_motion.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/physics/horizontal_projectile_motion.py b/physics/horizontal_projectile_motion.py index 09a0d0748..89d6f635f 100644 --- a/physics/horizontal_projectile_motion.py +++ b/physics/horizontal_projectile_motion.py @@ -15,19 +15,12 @@ For more info: https://en.wikipedia.org/wiki/Projectile_motion """ # Importing packages -from math import pi, sin +from math import pi, sin, radians as angle_to_radians # Acceleration Constant on hearth (unit m/s^2) g = 9.80665 -def angle_to_radians(angle : float) -> float: - """ - Convert an angle from degrees to randians - """ - return angle * pi / 180 - - def horizontal_distance(init_velocity: float, angle: float) -> float: """ Returns the horizontal distance that the object cover