





'''simple docstring'''


from __future__ import annotations

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







def    _lowerCamelCase  (__lowerCamelCase  :     float					,  __lowerCamelCase  :     float					,  __lowerCamelCase  :     bool = False     )   ->    list[float]:
			if radian_mode:
						return [magnitude * cos(__lowerCamelCase     ), magnitude * sin(__lowerCamelCase     )]
			return [magnitude * cos(radians(__lowerCamelCase     )     ), magnitude * sin(radians(__lowerCamelCase     )     )]







def    _lowerCamelCase  (__lowerCamelCase  :     NDArray[floataa]					,  __lowerCamelCase  :     NDArray[floataa]					,  __lowerCamelCase  :     float = 10**-1     )   ->    bool:
			a__     = cross(__lowerCamelCase					,  __lowerCamelCase     )
			a__     = sum(__lowerCamelCase     )
			return abs(__lowerCamelCase     ) < eps


if __name__ == "__main__":
		# Test to check if it works
		lowerCAmelCase_   :   Union[str, Any]       =					array(
		    [
		        polar_force(718.4, 180 - 30),
		        polar_force(879.54, 45),
		        polar_force(100, -90),
		    ]
		)

		lowerCAmelCase_   :   NDArray[floataa]       =					array([[0, 0], [0, 0], [0, 0]])

		assert in_static_equilibrium(forces, location)

		# Problem 1 in image_data/2D_problems.jpg
		lowerCAmelCase_   :   Tuple       =					array(
		    [
		        polar_force(30 * 9.81, 15),
		        polar_force(215, 180 - 45),
		        polar_force(264, 90 - 30),
		    ]
		)

		lowerCAmelCase_   :   List[str]       =					array([[0, 0], [0, 0], [0, 0]])

		assert in_static_equilibrium(forces, location)

		# Problem in image_data/2D_problems_1.jpg
		lowerCAmelCase_   :   Dict       =					array([[0, -2000], [0, -1200], [0, 15600], [0, -12400]])

		lowerCAmelCase_   :   Tuple       =					array([[0, 0], [6, 0], [10, 0], [12, 0]])

		assert in_static_equilibrium(forces, location)

		import doctest

		doctest.testmod()










'''simple docstring'''


import re







def    _lowerCamelCase  (__lowerCamelCase  :     str     )   ->    bool:
			a__     = re.compile(
			    r"^(?:0|94|\+94|0{2}94)" r"7(0|1|2|4|5|6|7|8)" r"(-| |)" r"\d{7}$"     )

			return bool(re.search(__lowerCamelCase					,  __lowerCamelCase     )     )


if __name__ == "__main__":
		lowerCAmelCase_   :   Any       =					"0094702343221"

		print(is_sri_lankan_phone_number(phone))



