






"""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 						__lowerCAmelCase   (			UpperCAmelCase       ):







  '''simple docstring'''


  __lowerCamelCase       :    Optional[Any]     	=			"regnet"
  __lowerCamelCase       :    Tuple     	=			["x", "y"]
  def __init__(      self:		Optional[int]				,			UpperCamelCase_:		Union[str, Any]=3				,			UpperCamelCase_:		Union[str, Any]=32				,			UpperCamelCase_:		Optional[Any]=[128, 192, 512, 1088]				,			UpperCamelCase_:		Any=[2, 6, 12, 2]				,			UpperCamelCase_:		Dict=64				,			UpperCamelCase_:		Union[str, Any]="y"				,			UpperCamelCase_:		Optional[Any]="relu"				,			**UpperCamelCase_:		str				,			):
        super().__init__(**UpperCamelCase_					)
        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








"""simple docstring"""






from math import radians as angle_to_radians
from math import sin

# Acceleration Constant on Earth (unit m/s^2)
A_			  =    9.80665




def 						_UpperCamelCase			(  A    ,       A			):

   # 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 						_UpperCamelCase			(  A    ,       A			):
   check_args(A    ,       A			)
   UpperCamelCase_     =angle_to_radians(2 * angle			)
   return round(init_velocity**2 * sin(A			) / g    ,       2			)




def 						_UpperCamelCase			(  A    ,       A			):
   check_args(A    ,       A			)
   UpperCamelCase_     =angle_to_radians(A			)
   return round(init_velocity**2 * sin(A			) ** 2 / (2 * g)    ,       2			)




def 						_UpperCamelCase			(  A    ,       A			):
   check_args(A    ,       A			)
   UpperCamelCase_     =angle_to_radians(A			)
   return round(2 * init_velocity * sin(A			) / g    ,       2			)




def 						_UpperCamelCase			(  ):
   UpperCamelCase_    ,							UpperCamelCase_     =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
    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]''')
