




from __future__ import annotations

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







def SCREAMING_SNAKE_CASE							(			lowercase_					,							lowercase_					,							lowercase_ = False		)  ->			list[float]:



       """simple docstring"""

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







def SCREAMING_SNAKE_CASE							(			lowercase_					,							lowercase_					,							lowercase_ = 10**-1		)  ->			bool:



       """simple docstring"""

       A__ 					=       cross(lowercase_					,							lowercase_		)
       A__ 					=       sum(lowercase_		)
       return abs(lowercase_		) < eps


if __name__ == "__main__":
  # Test to check if it works
  _lowerCamelCase      :						int							=  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      :						str							=  array(
      [
          polar_force(30 * 9.81, 15),
          polar_force(215, 180 - 45),
          polar_force(264, 90 - 30),
      ]
  )

  _lowerCamelCase      :						str							=  array([[0, 0], [0, 0], [0, 0]])

  assert in_static_equilibrium(forces, location)

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

  _lowerCamelCase      :						str							=  array([[0, 0], [6, 0], [10, 0], [12, 0]])

  assert in_static_equilibrium(forces, location)

  import doctest

  doctest.testmod()










# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
lowerCamelCase      :       Dict    =						abspath(join(dirname(dirname(__file__)), '''src'''))
sys.path.insert(1, git_repo_path)

# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action='''ignore''', category=FutureWarning)





def    __lowerCAmelCase   (    __snake_case							):
     from diffusers.utils.testing_utils import pytest_addoption_shared

     pytest_addoption_shared(__snake_case							)





def    __lowerCAmelCase   (    __snake_case							):
     from diffusers.utils.testing_utils import pytest_terminal_summary_main

     __lowerCAmelCase             =       terminalreporter.config.getoption("--make-reports"							)
     if make_reports:
          pytest_terminal_summary_main(__snake_case       ,			id=__snake_case							)






