




'''simple docstring'''







from math import radians as angle_to_radians
from math import sin

# Acceleration Constant on Earth (unit m/s^2)
A					       =9.80_665





def 		snake_case_				(_a      :				float       ,  _a      :				float	):

    # 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 > 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 		snake_case_				(_a      :				float       ,  _a      :				float	):
    check_args(_a       ,  _a	)
    UpperCAmelCase     			=						angle_to_radians(2 * angle	)
    return round(init_velocity**2 * sin(_a	) / g       ,  2	)





def 		snake_case_				(_a      :				float       ,  _a      :				float	):
    check_args(_a       ,  _a	)
    UpperCAmelCase     			=						angle_to_radians(_a	)
    return round(init_velocity**2 * sin(_a	) ** 2 / (2 * g)       ,  2	)





def 		snake_case_				(_a      :				float       ,  _a      :				float	):
    check_args(_a       ,  _a	)
    UpperCAmelCase     			=						angle_to_radians(_a	)
    return round(2 * init_velocity * sin(_a	) / g       ,  2	)





def 		snake_case_				():
    UpperCAmelCase			,	UpperCAmelCase     			=						2_5, 2_0
    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
   A					       =float(input('Initial Velocity: ').strip())

   # Get input from user
   A					       =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 ...configuration_utils import PretrainedConfig
from ...utils import logging


A					       =logging.get_logger(__name__)

A					       ={
    'facebook/regnet-y-040': 'https://huggingface.co/facebook/regnet-y-040/blob/main/config.json',
}


class      _a    (      __a					):
       __a							:	Optional[int]  							=   """regnet"""
       __a							:	Optional[Any]  							=   ["""x""", """y"""]
       def __init__(      self		:      int  ,							lowercase		:      List[Any]=3  ,							lowercase		:      Union[str, Any]=32  ,							lowercase		:      Tuple=[128, 192, 512, 1_088]  ,							lowercase		:      List[Any]=[2, 6, 12, 2]  ,							lowercase		:      Optional[Any]=64  ,							lowercase		:      Optional[int]="y"  ,							lowercase		:      int="relu"  ,							**lowercase		:      int  ,							):



           '''simple docstring'''

           super().__init__(**lowercase							)
           if layer_type not in self.layer_types:
               raise ValueError(f"layer_type={layer_type} is not one of {','.join(self.layer_types							)}"							)
           UpperCAmelCase     			=						num_channels
           UpperCAmelCase     			=						embedding_size
           UpperCAmelCase     			=						hidden_sizes
           UpperCAmelCase     			=						depths
           UpperCAmelCase     			=						groups_width
           UpperCAmelCase     			=						layer_type
           UpperCAmelCase     			=						hidden_act
           # always downsample in the first stage
           UpperCAmelCase     			=						True




