


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	)->		Optional[Any]:






			if radian_mode:
						return [magnitude * cos(lowerCamelCase_	), magnitude * sin(lowerCamelCase_	)]
			return [magnitude * cos(radians(lowerCamelCase_	)	), magnitude * sin(radians(lowerCamelCase_	)	)]
def 							UpperCamelCase_(					_A :NDArray[floataa]					,  _A :NDArray[floataa]					,  _A :float = 10**-1	)->		Optional[int]:
			UpperCamelCase__       =							cross(lowerCamelCase_					,  lowerCamelCase_	)
			UpperCamelCase__       =							sum(lowerCamelCase_	)
			return abs(lowerCamelCase_	) < eps


if __name__ == "__main__":
						# Test to check if it works
						__UpperCamelCase     		=							array(
						    [
						        polar_force(718.4, 1_8_0 - 3_0),
						        polar_force(879.54, 4_5),
						        polar_force(1_0_0, -9_0),
						    ]
						)

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

						assert in_static_equilibrium(forces, location)

						# Problem 1 in image_data/2D_problems.jpg
						__UpperCamelCase     		=							array(
						    [
						        polar_force(3_0 * 9.81, 1_5),
						        polar_force(2_1_5, 1_8_0 - 4_5),
						        polar_force(2_6_4, 9_0 - 3_0),
						    ]
						)

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

						assert in_static_equilibrium(forces, location)

						# Problem in image_data/2D_problems_1.jpg
						__UpperCamelCase     		=							array([[0, -2_0_0_0], [0, -1_2_0_0], [0, 1_5_6_0_0], [0, -1_2_4_0_0]])

						__UpperCamelCase     		=							array([[0, 0], [6, 0], [1_0, 0], [1_2, 0]])

						assert in_static_equilibrium(forces, location)

						import doctest

						doctest.testmod()







"""simple docstring"""







def  __SCREAMING_SNAKE_CASE		(			lowerCamelCase_:							int     ,		lowerCamelCase_:							int ):
						"""simple docstring"""






						return int((input_a, input_a).count(0 ) != 0 )

def  __SCREAMING_SNAKE_CASE		(			):
						"""simple docstring"""






						assert nand_gate(0     ,		0 ) == 1
						assert nand_gate(0     ,		1 ) == 1
						assert nand_gate(1     ,		0 ) == 1
						assert nand_gate(1     ,		1 ) == 0


if __name__ == "__main__":
			print(nand_gate(0, 0))
			print(nand_gate(0, 1))
			print(nand_gate(1, 0))
			print(nand_gate(1, 1))



