


from math import radians as angle_to_radians
from math import sin

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






def 		lowercase_(  SCREAMING_SNAKE_CASE_				,						SCREAMING_SNAKE_CASE_     ):


  '''simple docstring'''

  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 > 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 		lowercase_(  SCREAMING_SNAKE_CASE_				,						SCREAMING_SNAKE_CASE_     ):


  '''simple docstring'''

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






def 		lowercase_(  SCREAMING_SNAKE_CASE_				,						SCREAMING_SNAKE_CASE_     ):


  '''simple docstring'''

  check_args(SCREAMING_SNAKE_CASE_				,						SCREAMING_SNAKE_CASE_     )
  lowerCamelCase			: List[str]   =    angle_to_radians(SCREAMING_SNAKE_CASE_     )
  return round(init_velocity**2 * sin(SCREAMING_SNAKE_CASE_     ) ** 2 / (2 * g)				,						2     )






def 		lowercase_(  SCREAMING_SNAKE_CASE_				,						SCREAMING_SNAKE_CASE_     ):


  '''simple docstring'''

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






def 		lowercase_(  ):


  '''simple docstring'''

  lowerCamelCase   ,     lowerCamelCase			: Optional[Any]   =    25, 20
  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
   _snake_case					=					float(input('''Initial Velocity: ''').strip())

   # Get input from user
   _snake_case					=					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]''')







from typing import Optional, Union

from ...file_utils import TensorType
from ...processing_utils import ProcessorMixin
from ...tokenization_utils_base import BatchEncoding, PaddingStrategy, TruncationStrategy
class      UpperCAmelCase_ ( UpperCamelCase   ):

   '''simple docstring'''




   __A			:				Union[str, Any]							=		"MarkupLMFeatureExtractor"
   __A			:				List[str]							=		("MarkupLMTokenizer", "MarkupLMTokenizerFast")
   __A			:				str							=		True






   def __call__(		self						,    __A=None						,    __A=None						,    __A=None						,    __A=None						,    __A=None						,    __A = True						,    __A = False						,    __A = None						,    __A = None						,    __A = 0						,    __A = None						,    __A = None						,    __A = None						,    __A = False						,    __A = False						,    __A = False						,    __A = False						,    __A = True						,    __A = None						,    **__A						,    ):






     """simple docstring"""





     if self.parse_html:
       if html_strings is None:
         raise ValueError("Make sure to pass HTML strings in case `parse_html` is set to `True`"			)

       if nodes is not None or xpaths is not None or node_labels is not None:
         raise ValueError(
             "Please don't pass nodes, xpaths nor node labels in case `parse_html` is set to `True`"			)

       lowerCamelCase			: Any   =    self.feature_extractor(__A			)
       lowerCamelCase			: Optional[int]   =    features["nodes"]
       lowerCamelCase			: Any   =    features["xpaths"]
     else:
       if html_strings is not None:
         raise ValueError("You have passed HTML strings but `parse_html` is set to `False`."			)
       if nodes is None or xpaths is None:
         raise ValueError("Make sure to pass nodes and xpaths in case `parse_html` is set to `False`"			)

        # # second, apply the tokenizer
     if questions is not None and self.parse_html:
       if isinstance(__A						,    __A			):
         lowerCamelCase			: Tuple   =    [questions]  # add batch dimension (as the feature extractor always adds a batch dimension)

     lowerCamelCase			: Tuple   =    self.tokenizer(
         text=questions if questions is not None else nodes						,    text_pair=nodes if questions is not None else None						,    xpaths=__A						,    node_labels=__A						,    add_special_tokens=__A						,    padding=__A						,    truncation=__A						,    max_length=__A						,    stride=__A						,    pad_to_multiple_of=__A						,    return_token_type_ids=__A						,    return_attention_mask=__A						,    return_overflowing_tokens=__A						,    return_special_tokens_mask=__A						,    return_offsets_mapping=__A						,    return_length=__A						,    verbose=__A						,    return_tensors=__A						,    **__A						,    )

     return encoded_inputs






   def _snake_case   (		self						,    *__A						,    **__A			):






     """simple docstring"""





     return self.tokenizer.batch_decode(*__A						,    **__A			)






   def _snake_case   (		self						,    *__A						,    **__A			):






     """simple docstring"""





     return self.tokenizer.decode(*__A						,    **__A			)






   @property
   def _snake_case   (		self			):






     """simple docstring"""





     lowerCamelCase			: Dict   =    self.tokenizer.model_input_names
     return tokenizer_input_names



