


'''simple docstring'''
from math import atan, cos, radians, sin, tan

from .haversine_distance import haversine_distance

__snake_case							      =     6378137.0
__snake_case							      =     6356752.314245
__snake_case							      =     6378137


def 			a      (			__a ,					__a ,					__a ,					__a   )  ->	float:



					'''simple docstring'''






					UpperCamelCase__   :List[str]												= (AXIS_A - AXIS_B) / AXIS_A
					# Parametric latitudes
					# https://en.wikipedia.org/wiki/Latitude#Parametric_(or_reduced)_latitude
					UpperCamelCase__   :Any												= atan((1 - flattening) * tan(radians(lowercase__   )   )   )
					UpperCamelCase__   :Optional[Any]												= atan((1 - flattening) * tan(radians(lowercase__   )   )   )

					# Compute central angle between two points
					# using haversine theta. sigma =  haversine_distance / equatorial radius
					UpperCamelCase__   :Optional[Any]												= haversine_distance(lowercase__ ,					lowercase__ ,					lowercase__ ,					lowercase__   ) / EQUATORIAL_RADIUS

					# Intermediate P and Q values
					UpperCamelCase__   :str												= (b_lata + b_lata) / 2
					UpperCamelCase__   :Dict												= (b_lata - b_lata) / 2

					# Intermediate X value
					# X = (sigma - sin(sigma)) * sin^2Pcos^2Q / cos^2(sigma/2)
					UpperCamelCase__   :Tuple												= (sin(lowercase__   ) ** 2) * (cos(lowercase__   ) ** 2)
					UpperCamelCase__   :int												= cos(sigma / 2   ) ** 2
					UpperCamelCase__   :Optional[int]												= (sigma - sin(lowercase__   )) * (x_numerator / x_demonimator)

					# Intermediate Y value
					# Y = (sigma + sin(sigma)) * cos^2Psin^2Q / sin^2(sigma/2)
					UpperCamelCase__   :Dict												= (cos(lowercase__   ) ** 2) * (sin(lowercase__   ) ** 2)
					UpperCamelCase__   :Union[str, Any]												= sin(sigma / 2   ) ** 2
					UpperCamelCase__   :str												= (sigma + sin(lowercase__   )) * (y_numerator / y_denominator)

					return EQUATORIAL_RADIUS * (sigma - ((flattening / 2) * (x_value + y_value)))


if __name__ == "__main__":
		import doctest

		doctest.testmod()



def        _lowerCamelCase(	lowercase__   , lowercase__ = " "	)						->	list:

		'''simple docstring'''







		__lowercase=			[]

		__lowercase=			0
		for index, char in enumerate(lowercase__	):
				if char == separator:
						split_words.append(string[last_index:index]	)
						__lowercase=			index + 1
				elif index + 1 == len(lowercase__	):
						split_words.append(string[last_index : index + 1]	)
		return split_words


if __name__ == "__main__":
	from doctest import testmod

	testmod()






