


"""simple docstring"""






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

__snake_case		=       6378137.0
__snake_case		=       6356752.314245
__snake_case		=       6378137
def       A_   (   _lowerCAmelCase     :					float,     _lowerCAmelCase     :					float,     _lowerCAmelCase     :					float,     _lowerCAmelCase     :					float       ):






     """simple docstring"""

     _a    	=				(AXIS_A - AXIS_B) / AXIS_A
     _a    	=				atan((1 - flattening) * tan(radians(_lowerCAmelCase       )       )       )
     _a    	=				atan((1 - flattening) * tan(radians(_lowerCAmelCase       )       )       )
     _a    	=				radians(_lowerCAmelCase       )
     _a    	=				radians(_lowerCAmelCase       )
     # Equation
     _a    	=				sin((phi_a - phi_a) / 2       )
     _a    	=				sin((lambda_a - lambda_a) / 2       )
     # Square both values
     sin_sq_phi *= sin_sq_phi
     sin_sq_lambda *= sin_sq_lambda
     _a    	=				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 pathlib import Path

import fire
def       A_   (   _lowerCAmelCase     :					str,     _lowerCAmelCase     :					str,     _lowerCAmelCase     :					int       ):






     """simple docstring"""

     _a    	=				Path(_lowerCAmelCase       )
     _a    	=				Path(_lowerCAmelCase       )
     dest_dir.mkdir(exist_ok=_lowerCAmelCase       )
     for path in src_dir.iterdir():
          _a    	=				[x.rstrip() for x in list(path.open().readlines()       )][:n]
          _a    	=				dest_dir.joinpath(path.name       )
          print(_lowerCAmelCase       )
          dest_path.open('''w'''       ).write('''\n'''.join(_lowerCAmelCase       )       )


if __name__ == "__main__":
   fire.Fire(minify)