'''simple docstring'''

from math import radians as angle_to_radians
from math import sin

# Acceleration Constant on Earth (unit m/s^2)
_lowerCamelCase :				Optional[Any]														= 9.80_665



def  _lowerCAmelCase				(				__a			,      __a      )  ->      None:
     '''simple docstring'''







     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			,      __a      )  ->      float:
     '''simple docstring'''







     check_args(__a			,      __a      )
     _UpperCamelCase  :Union[str, Any]       =angle_to_radians(2 * angle      )
     return round(init_velocity**2 * sin(__a      ) / g			,      2      )



def  _lowerCAmelCase				(				__a			,      __a      )  ->      float:
     '''simple docstring'''







     check_args(__a			,      __a      )
     _UpperCamelCase  :Dict       =angle_to_radians(__a      )
     return round(init_velocity**2 * sin(__a      ) ** 2 / (2 * g)			,      2      )



def  _lowerCAmelCase				(				__a			,      __a      )  ->      float:
     '''simple docstring'''







     check_args(__a			,      __a      )
     _UpperCamelCase  :int       =angle_to_radians(__a      )
     return round(2 * init_velocity * sin(__a      ) / g			,      2      )



def  _lowerCAmelCase				(				)  ->      None:
     '''simple docstring'''







     _UpperCamelCase       ,      _UpperCamelCase  :Any       =25, 20
     assert horizontal_distance(__a			,      __a      ) == 40.97
     assert max_height(__a			,      __a      ) == 3.73
     assert total_time(__a			,      __a      ) == 1.74


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

      testmod()

      # Get input from user
      _lowerCamelCase :				List[str]														= float(input("""Initial Velocity: """).strip())

      # Get input from user
      _lowerCamelCase :				str														= 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]")

"""simple docstring"""
from transformers import ProcessorMixin




class  _snake_case	(    _lowercase							):
							SCREAMING_SNAKE_CASE		  =    '''AutoFeatureExtractor'''
							SCREAMING_SNAKE_CASE		  =    '''AutoTokenizer'''
