

from math import radians as angle_to_radians
from math import sin

# Acceleration Constant on Earth (unit m/s^2)
A_						:     Tuple			  =				9.8_0665


def  __a    (				SCREAMING_SNAKE_CASE    ,				SCREAMING_SNAKE_CASE ) ->       Any:






    '''simple docstring'''

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

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

    # Ensure valid angle
    if angle > 9_0 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  __a    (				SCREAMING_SNAKE_CASE    ,				SCREAMING_SNAKE_CASE ) ->       Dict:






    '''simple docstring'''
    check_args(SCREAMING_SNAKE_CASE    ,				SCREAMING_SNAKE_CASE )
    __UpperCAmelCase			   =     angle_to_radians(2 * angle )
    return round(init_velocity**2 * sin(SCREAMING_SNAKE_CASE ) / g    ,				2 )


def  __a    (				SCREAMING_SNAKE_CASE    ,				SCREAMING_SNAKE_CASE ) ->       int:






    '''simple docstring'''
    check_args(SCREAMING_SNAKE_CASE    ,				SCREAMING_SNAKE_CASE )
    __UpperCAmelCase			   =     angle_to_radians(SCREAMING_SNAKE_CASE )
    return round(init_velocity**2 * sin(SCREAMING_SNAKE_CASE ) ** 2 / (2 * g)    ,				2 )


def  __a    (				SCREAMING_SNAKE_CASE    ,				SCREAMING_SNAKE_CASE ) ->       List[Any]:






    '''simple docstring'''
    check_args(SCREAMING_SNAKE_CASE    ,				SCREAMING_SNAKE_CASE )
    __UpperCAmelCase			   =     angle_to_radians(SCREAMING_SNAKE_CASE )
    return round(2 * init_velocity * sin(SCREAMING_SNAKE_CASE ) / g    ,				2 )


def  __a    (				) ->       str:






    '''simple docstring'''
    __UpperCAmelCase			   =     2_5, 2_0
    assert horizontal_distance(SCREAMING_SNAKE_CASE    ,				SCREAMING_SNAKE_CASE ) == 40.97
    assert max_height(SCREAMING_SNAKE_CASE    ,				SCREAMING_SNAKE_CASE ) == 3.73
    assert total_time(SCREAMING_SNAKE_CASE    ,				SCREAMING_SNAKE_CASE ) == 1.74


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

   testmod()

   # Get input from user
   A_						:     List[Any]			  =				float(input('Initial Velocity: ').strip())

   # Get input from user
   A_						:     Any			  =				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 warnings

from ...utils import logging
from .image_processing_convnext import ConvNextImageProcessor


A_						:     int			  =				logging.get_logger(__name__)
class    A_				( _a  ):


    '''simple docstring'''






    def __init__(self       , *lowercase__       , **lowercase__					)       -> None:
        warnings.warn(
            '''The class ConvNextFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
            ''' Please use ConvNextImageProcessor instead.'''       , lowercase__       , )
        super().__init__(*lowercase__       , **lowercase__					)




