





"""simple docstring"""
from math import radians as angle_to_radians
from math import sin

# Acceleration Constant on Earth (unit m/s^2)
_snake_case	:						Dict					=					9.8_0_6_6_5






def    A__							(     UpperCamelCase   ,    UpperCamelCase			):

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






def    A__							(     UpperCamelCase   ,    UpperCamelCase			):
							check_args(a_   ,    a_			)
							A						=    angle_to_radians(a_			)
							return round(init_velocity**2 * sin(a_			) ** 2 / (2 * g)   ,    2			)






def    A__							(     UpperCamelCase   ,    UpperCamelCase			):
							check_args(a_   ,    a_			)
							A						=    angle_to_radians(a_			)
							return round(2 * init_velocity * sin(a_			) / g   ,    2			)






def    A__							(     ):
							A						=    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
		_snake_case	:						Optional[int]					=					float(input('Initial Velocity: ').strip())

		# Get input from user
		_snake_case	:						List[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]""")










'''simple docstring'''







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


UpperCamelCase_					=				{
    "configuration_flava": [
        "FLAVA_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "FlavaConfig",
        "FlavaImageCodebookConfig",
        "FlavaImageConfig",
        "FlavaMultimodalConfig",
        "FlavaTextConfig",
    ],
}

try:
  if not is_vision_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  UpperCamelCase_					=				["FlavaFeatureExtractor"]
  UpperCamelCase_					=				["FlavaImageProcessor"]
  UpperCamelCase_					=				["FlavaProcessor"]

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  UpperCamelCase_					=				[
      "FLAVA_PRETRAINED_MODEL_ARCHIVE_LIST",
      "FlavaForPreTraining",
      "FlavaImageCodebook",
      "FlavaImageModel",
      "FlavaModel",
      "FlavaMultimodalModel",
      "FlavaPreTrainedModel",
      "FlavaTextModel",
  ]

if TYPE_CHECKING:
  from .configuration_flava import (
      FLAVA_PRETRAINED_CONFIG_ARCHIVE_MAP,
      FlavaConfig,
      FlavaImageCodebookConfig,
      FlavaImageConfig,
      FlavaMultimodalConfig,
      FlavaTextConfig,
  )

  try:
    if not is_vision_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .feature_extraction_flava import FlavaFeatureExtractor
    from .image_processing_flava import FlavaImageProcessor
    from .processing_flava import FlavaProcessor

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_flava import (
        FLAVA_PRETRAINED_MODEL_ARCHIVE_LIST,
        FlavaForPreTraining,
        FlavaImageCodebook,
        FlavaImageModel,
        FlavaModel,
        FlavaMultimodalModel,
        FlavaPreTrainedModel,
        FlavaTextModel,
    )

else:
  import sys

  UpperCamelCase_					=				_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)