
from math import radians as angle_to_radians
from math import sin

# Acceleration Constant on Earth (unit m/s^2)
_snake_case		  =   9.8_0665
def lowerCamelCase_       (			A			:      float		,					A			:      float						):




      """simple docstring"""

      # Ensure valid instance
      if not isinstance(A		,					(int, float)						):
            raise TypeError('''Invalid velocity. Should be a positive number.'''						)

      if not isinstance(A		,					(int, float)						):
            raise TypeError('''Invalid angle. Range is 1-90 degrees.'''						)

      # Ensure valid angle
      if angle > 90 or angle < 1:
            raise ValueError('''Invalid angle. Range is 1-90 degrees.'''						)

      # Ensure valid velocity
      if init_velocity < 0:
            raise ValueError('''Invalid velocity. Should be a positive number.'''						)
def lowerCamelCase_       (			A			:      float		,					A			:      float						):




      """simple docstring"""
      check_args(A		,					A						)
      lowerCAmelCase_						=      angle_to_radians(2 * angle						)
      return round(init_velocity**2 * sin(A						) / g		,					2						)
def lowerCamelCase_       (			A			:      float		,					A			:      float						):




      """simple docstring"""
      check_args(A		,					A						)
      lowerCAmelCase_						=      angle_to_radians(A						)
      return round(init_velocity**2 * sin(A						) ** 2 / (2 * g)		,					2						)
def lowerCamelCase_       (			A			:      float		,					A			:      float						):




      """simple docstring"""
      check_args(A		,					A						)
      lowerCAmelCase_						=      angle_to_radians(A						)
      return round(2 * init_velocity * sin(A						) / g		,					2						)
def lowerCamelCase_       (			):




      """simple docstring"""
      lowerCAmelCase_			,		lowerCAmelCase_						=      25, 20
      assert horizontal_distance(A		,					A						) == 4_0.9_7
      assert max_height(A		,					A						) == 3.7_3
      assert total_time(A		,					A						) == 1.7_4


if __name__ == "__main__":
 from doctest import testmod

 testmod()

 # Get input from user
 _snake_case		  =   float(input("Initial Velocity: ").strip())

 # Get input from user
 _snake_case		  =   float(input("angle: ").strip())

 # Print results
 print()
 print("Results: ")
 print(f'''Horizontal Distance: {horizontal_distance(init_vel, angle)!s} [m]''')
 print(f'''Maximum Height: {max_height(init_vel, angle)!s} [m]''')
 print(f'''Total Time: {total_time(init_vel, angle)!s} [s]''')





import math
def lowerCamelCase_       (			A			:      int						):




      """simple docstring"""

      if 1 < number < 4:
            # 2 and 3 are primes
            return True
      elif number < 2 or number % 2 == 0 or number % 3 == 0:
            # Negatives, 0, 1, all even numbers, all multiples of 3 are not primes
            return False

      # All primes number are in format of 6k +/- 1
      for i in range(5		,					int(math.sqrt(A						) + 1						)		,					6						):
            if number % i == 0 or number % (i + 2) == 0:
                  return False
      return True
def lowerCamelCase_       (			A			:      int = 2_00_00_00						):




      """simple docstring"""
      return sum(num for num in range(3		,					A		,					2						) if is_prime(A						)						) + 2 if n > 2 else 0


if __name__ == "__main__":
 print(f'''{solution() = }''')



