





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 lowerCAmelCase__(__snake_case	,__snake_case							)    ->				None:







	'''simple docstring'''







	if not isinstance(__snake_case	,(int, float)							):
		raise TypeError('''Invalid velocity. Should be a positive number.'''							)

	if not isinstance(__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 lowerCAmelCase__(__snake_case	,__snake_case							)    ->				float:







	'''simple docstring'''







	check_args(__snake_case	,__snake_case							)
	lowerCamelCase__        =		angle_to_radians(2 * angle							)
	return round(init_velocity**2 * sin(__snake_case							) / g	,2							)





def lowerCAmelCase__(__snake_case	,__snake_case							)    ->				float:







	'''simple docstring'''







	check_args(__snake_case	,__snake_case							)
	lowerCamelCase__        =		angle_to_radians(__snake_case							)
	return round(init_velocity**2 * sin(__snake_case							) ** 2 / (2 * g)	,2							)





def lowerCAmelCase__(__snake_case	,__snake_case							)    ->				float:







	'''simple docstring'''







	check_args(__snake_case	,__snake_case							)
	lowerCamelCase__        =		angle_to_radians(__snake_case							)
	return round(2 * init_velocity * sin(__snake_case							) / g	,2							)





def lowerCAmelCase__()    ->				None:







	'''simple docstring'''







	lowerCamelCase__    ,     lowerCamelCase__        =		25, 20
	assert horizontal_distance(__snake_case	,__snake_case							) == 40.97
	assert max_height(__snake_case	,__snake_case							) == 3.7_3
	assert total_time(__snake_case	,__snake_case							) == 1.7_4


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]""")













import warnings

from .generation import FlaxGenerationMixin






class  __A   (   lowerCAmelCase			):

			'''simple docstring'''







			warnings.warn(
			    """Importing `FlaxGenerationMixin` from `src/transformers/generation_flax_utils.py` is deprecated and will """
			    """be removed in Transformers v5. Import as `from transformers import FlaxGenerationMixin` instead."""      ,    lowerCAmelCase      ,    )



