



"""simple docstring"""





from __future__ import annotations

from numpy import array, cos, cross, floataa, radians, sin
from numpy.typing import NDArray




def 	UpperCAmelCase     (		A	:						float     ,				A	:						float     ,				A	:						bool = False       ):

		'''simple docstring'''


		if radian_mode:
				return [magnitude * cos(A       ), magnitude * sin(A       )]
		return [magnitude * cos(radians(A       )       ), magnitude * sin(radians(A       )       )]




def 	UpperCAmelCase     (		A	:						NDArray[floataa]     ,				A	:						NDArray[floataa]     ,				A	:						float = 10**-1       ):

		'''simple docstring'''


		_UpperCAmelCase							 =		cross(A     ,				A       )
		_UpperCAmelCase							 =		sum(A       )
		return abs(A       ) < eps


if __name__ == "__main__":
					# Test to check if it works
					lowercase  							=					array(
					    [
					        polar_force(718.4, 1_80 - 30),
					        polar_force(879.54, 45),
					        polar_force(1_00, -90),
					    ]
					)

					lowercase  							=					array([[0, 0], [0, 0], [0, 0]])

					assert in_static_equilibrium(forces, location)

					# Problem 1 in image_data/2D_problems.jpg
					lowercase  							=					array(
					    [
					        polar_force(30 * 9.81, 15),
					        polar_force(2_15, 1_80 - 45),
					        polar_force(2_64, 90 - 30),
					    ]
					)

					lowercase  							=					array([[0, 0], [0, 0], [0, 0]])

					assert in_static_equilibrium(forces, location)

					# Problem in image_data/2D_problems_1.jpg
					lowercase  							=					array([[0, -20_00], [0, -12_00], [0, 1_56_00], [0, -1_24_00]])

					lowercase  							=					array([[0, 0], [6, 0], [10, 0], [12, 0]])

					assert in_static_equilibrium(forces, location)

					import doctest

					doctest.testmod()







"""simple docstring"""





import os




def 	UpperCAmelCase     (		):

		'''simple docstring'''


		_UpperCAmelCase							 =		os.path.join(os.path.dirname(A       )     ,				'num.txt'       )
		with open(A       ) as file_hand:
				return str(sum(int(A       ) for line in file_hand       )       )[:10]


if __name__ == "__main__":
					print(solution())


