





'''simple docstring'''


from typing import Any

class  lowerCAmelCase_		:




 def __init__(						self      ,  _lowerCAmelCase		)     ->				Any:
     _lowerCAmelCase						      =   data
     _lowerCAmelCase						      =   None







class  lowerCAmelCase_		:




 def __init__(						self		)     ->				List[str]:
     _lowerCAmelCase						      =   None




 def 				_snake_case (						self		)     ->				Any:
     _lowerCAmelCase						      =   self.head
     while temp is not None:
         print(temp.data      ,  end=" "		)
         _lowerCAmelCase						      =   temp.next
     print()




 def 				_snake_case (						self      ,  _lowerCAmelCase		)     ->				Dict:
     _lowerCAmelCase						      =   Node(_lowerCAmelCase		)
     _lowerCAmelCase						      =   self.head
     _lowerCAmelCase						      =   new_node





 def 				_snake_case (						self      ,  _lowerCAmelCase      ,  _lowerCAmelCase		)     ->				Dict:
     if node_data_a == node_data_a:
         return
     else:
         _lowerCAmelCase						      =   self.head
         while node_a is not None and node_a.data != node_data_a:
             _lowerCAmelCase						      =   node_a.next

         _lowerCAmelCase						      =   self.head
         while node_a is not None and node_a.data != node_data_a:
             _lowerCAmelCase						      =   node_a.next

         if node_a is None or node_a is None:
             return

         _lowerCAmelCase      ,      _lowerCAmelCase						      =   node_a.data, node_a.data


if __name__ == "__main__":
       _SCREAMING_SNAKE_CASE									=				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      __UpperCAmelCase       (      lowercase ,lowercase ,lowercase = False		):







  """simple docstring"""
  if radian_mode:
    return [magnitude * cos(lowercase		), magnitude * sin(lowercase		)]
  return [magnitude * cos(radians(lowercase		)		), magnitude * sin(radians(lowercase		)		)]






def      __UpperCAmelCase       (      lowercase ,lowercase ,lowercase = 10**-1		):







  """simple docstring"""
  _UpperCAmelCase    			=   cross(lowercase ,lowercase		)
  _UpperCAmelCase    			=   sum(lowercase		)
  return abs(lowercase		) < 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()
