"""simple docstring"""


from math import asin, atan, cos, radians, sin, sqrt, tan

a				=6_378_137.0
a				=6_356_752.314_245
a				=637_8137





def      lowerCamelCase_					(   __lowerCAmelCase  ,       __lowerCAmelCase  ,       __lowerCAmelCase  ,       __lowerCAmelCase							)				->   float:




						'''simple docstring'''



						lowerCamelCase__   =(AXIS_A - AXIS_B) / AXIS_A
						lowerCamelCase__   =atan((1 - flattening) * tan(radians(__lowerCAmelCase							)							)							)
						lowerCamelCase__   =atan((1 - flattening) * tan(radians(__lowerCAmelCase							)							)							)
						lowerCamelCase__   =radians(__lowerCAmelCase							)
						lowerCamelCase__   =radians(__lowerCAmelCase							)
						# Equation
						lowerCamelCase__   =sin((phi_a - phi_a) / 2							)
						lowerCamelCase__   =sin((lambda_a - lambda_a) / 2							)
						# Square both values
						sin_sq_phi *= sin_sq_phi
						sin_sq_lambda *= sin_sq_lambda
						lowerCamelCase__   =sqrt(sin_sq_phi + (cos(__lowerCAmelCase							) * cos(__lowerCAmelCase							) * sin_sq_lambda)							)
						return 2 * RADIUS * asin(__lowerCAmelCase							)


if __name__ == "__main__":
	import doctest

	doctest.testmod()



"""simple docstring"""


from .imports import is_rich_available


if is_rich_available():
	from rich.traceback import install

	install(show_locals=False)

else:
	raise ModuleNotFoundError('To use the rich extension, install rich with `pip install rich`')


