
"""simple docstring"""






from typing import Any





class 				lowercase__:
	'''simple docstring'''

	def __init__(						self    :List[str]		, lowerCamelCase_    :Any					)							->			List[Any]:







			'''simple docstring'''




			SCREAMING_SNAKE_CASE       :     List[str]				= data
			SCREAMING_SNAKE_CASE       :     Dict				= None





class 				lowercase__:
	'''simple docstring'''

	def __init__(						self    :Optional[Any]					)							->			int:







			'''simple docstring'''




			SCREAMING_SNAKE_CASE       :     Any				= None





	def   __lowerCAmelCase (						self    :Tuple					)							->			List[str]:







			'''simple docstring'''




			SCREAMING_SNAKE_CASE       :     Dict				= self.head
			while temp is not None:
					print(temp.data		, end=''' '''					)
					SCREAMING_SNAKE_CASE       :     Dict				= temp.next
			print()





	def   __lowerCAmelCase (						self    :Optional[Any]		, lowerCamelCase_    :Any					)							->			Any:







			'''simple docstring'''




			SCREAMING_SNAKE_CASE       :     Optional[int]				= Node(lowerCamelCase_					)
			SCREAMING_SNAKE_CASE       :     str				= self.head
			SCREAMING_SNAKE_CASE       :     Optional[Any]				= new_node







	def   __lowerCAmelCase (						self    :Optional[Any]		, lowerCamelCase_    :Optional[Any]		, lowerCamelCase_    :List[Any]					)							->			Any:







			'''simple docstring'''




			if node_data_a == node_data_a:
					return
			else:
					SCREAMING_SNAKE_CASE       :     Dict				= self.head
					while node_a is not None and node_a.data != node_data_a:
							SCREAMING_SNAKE_CASE       :     Optional[Any]				= node_a.next

					SCREAMING_SNAKE_CASE       :     Optional[Any]				= self.head
					while node_a is not None and node_a.data != node_data_a:
							SCREAMING_SNAKE_CASE       :     Optional[Any]				= node_a.next

					if node_a is None or node_a is None:
							return

					SCREAMING_SNAKE_CASE       :     Tuple				= node_a.data, node_a.data


if __name__ == "__main__":
					lowerCamelCase__ :       Tuple						     =			LinkedList()
					for i in range(5, 0, -1):
										ll.push(i)

					ll.print_list()

					ll.swap_nodes(1, 4)
					print("After swapping")
					ll.print_list()







"""simple docstring"""






from __future__ import annotations

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





def __A						(   a_ :							float		,		a_ :							float		,		a_ :							bool = False     )->							list[float]:




		'''simple docstring'''






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





def __A						(   a_ :							NDArray[floataa]		,		a_ :							NDArray[floataa]		,		a_ :							float = 10**-1     )->							bool:




		'''simple docstring'''






		SCREAMING_SNAKE_CASE       :     NDArray[floataa]				= cross(a_		,		a_     )
		SCREAMING_SNAKE_CASE       :     float				= sum(a_     )
		return abs(a_     ) < eps


if __name__ == "__main__":
					# Test to check if it works
					lowerCamelCase__ :       Optional[Any]						     =			array(
					    [
					        polar_force(7_1_8.4, 180 - 30),
					        polar_force(8_7_9.5_4, 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__ :       Union[str, Any]						     =			array(
					    [
					        polar_force(30 * 9.8_1, 15),
					        polar_force(215, 180 - 45),
					        polar_force(264, 90 - 30),
					    ]
					)

					lowerCamelCase__ :       Any						     =			array([[0, 0], [0, 0], [0, 0]])

					assert in_static_equilibrium(forces, location)

					# Problem in image_data/2D_problems_1.jpg
					lowerCamelCase__ :       Union[str, Any]						     =			array([[0, -2000], [0, -1200], [0, 15600], [0, -12400]])

					lowerCamelCase__ :       Optional[int]						     =			array([[0, 0], [6, 0], [10, 0], [12, 0]])

					assert in_static_equilibrium(forces, location)

					import doctest

					doctest.testmod()





