





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

lowerCAmelCase_    =				6_378_137.0
lowerCAmelCase_    =				6_356_752.314_245
lowerCAmelCase_    =				6_3_7_8_1_3_7






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






				"""simple docstring"""


				snake_case_						:    Union[str, Any]				=  (AXIS_A - AXIS_B) / AXIS_A
				snake_case_						:    int				=  atan((1 - flattening) * tan(radians(_UpperCamelCase ) ) )
				snake_case_						:    List[str]				=  atan((1 - flattening) * tan(radians(_UpperCamelCase ) ) )
				snake_case_						:    List[str]				=  radians(_UpperCamelCase )
				snake_case_						:    str				=  radians(_UpperCamelCase )
				# Equation
				snake_case_						:    List[str]				=  sin((phi_a - phi_a) / 2 )
				snake_case_						:    Any				=  sin((lambda_a - lambda_a) / 2 )
				# Square both values
				sin_sq_phi *= sin_sq_phi
				sin_sq_lambda *= sin_sq_lambda
				snake_case_						:    int				=  sqrt(sin_sq_phi + (cos(_UpperCamelCase ) * cos(_UpperCamelCase ) * sin_sq_lambda) )
				return 2 * RADIUS * asin(_UpperCamelCase )


if __name__ == "__main__":
	import doctest

	doctest.testmod()







lowerCAmelCase_    =				{
    "joule": 1.0,
    "kilojoule": 1_0_0_0,
    "megajoule": 1_0_0_0_0_0_0,
    "gigajoule": 1_0_0_0_0_0_0_0_0_0,
    "wattsecond": 1.0,
    "watthour": 3_6_0_0,
    "kilowatthour": 3_6_0_0_0_0_0,
    "newtonmeter": 1.0,
    "calorie_nutr": 4_1_8_6.8,
    "kilocalorie_nutr": 4_1_8_6_8_0_0.0_0,
    "electronvolt": 1.602_176_634e-19,
    "britishthermalunit_it": 1_0_5_5.0_5_5_8_5,
    "footpound": 1.355_818,
}






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






				"""simple docstring"""


				if to_type not in ENERGY_CONVERSION or from_type not in ENERGY_CONVERSION:
								snake_case_						:    str				=  (
								    f'''Incorrect \'from_type\' or \'to_type\' value: {from_type!r}, {to_type!r}\n'''
								    f'''Valid values are: {", ".join(_UpperCamelCase )}'''
								)
								raise ValueError(_UpperCamelCase )
				return value * ENERGY_CONVERSION[from_type] / ENERGY_CONVERSION[to_type]


if __name__ == "__main__":
	import doctest

	doctest.testmod()
