Skip to content

Commit bc31e3f

Browse files
authored
imported radians from math
1 parent 552546f commit bc31e3f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

physics/horizontal_projectile_motion.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,12 @@
1515
"""
1616

1717
# Importing packages
18-
from math import pi, sin
18+
from math import pi, sin, radians as angle_to_radians
1919

2020
# Acceleration Constant on hearth (unit m/s^2)
2121
g = 9.80665
2222

2323

24-
def angle_to_radians(angle : float) -> float:
25-
"""
26-
Convert an angle from degrees to randians
27-
"""
28-
return angle * pi / 180
29-
30-
3124
def horizontal_distance(init_velocity: float, angle: float) -> float:
3225
"""
3326
Returns the horizontal distance that the object cover

0 commit comments

Comments
 (0)