"""simple docstring"""


import argparse


a				='docs/source/_static/js/custom.js'





def      lowerCamelCase_					(   __lowerCAmelCase							)				->   Union[str, Any]:




						'''simple docstring'''



						with open(__lowerCAmelCase  ,       encoding="utf-8"  ,       newline="\n"							) as f:
												lowerCamelCase__   =f.readlines()
						lowerCamelCase__   =0

						# First let's put the right version
						while not lines[index].startswith("const stableVersion ="							):
												index += 1
						lowerCamelCase__   =F'''const stableVersion = "v{version}"\n'''

						# Then update the dictionary
						while not lines[index].startswith("const versionMapping = {"							):
												index += 1

						# We go until the end
						while not lines[index].startswith("}"							):
												index += 1
						# We add the new version at the end
						lines[index - 1] += F'''    "v{version}": "v{version}",\n'''

						with open(__lowerCAmelCase  ,       "w"  ,       encoding="utf-8"  ,       newline="\n"							) as f:
												f.writelines(__lowerCAmelCase							)


if __name__ == "__main__":
	a				=argparse.ArgumentParser()
	parser.add_argument('--version', help='Release version.')
	a				=parser.parse_args()
	update_custom_js(args.version)



"""simple docstring"""


from __future__ import annotations

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





def      lowerCamelCase_					(   __lowerCAmelCase  ,       __lowerCAmelCase  ,       __lowerCAmelCase = False							)				->   list[float]:




						'''simple docstring'''



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





def      lowerCamelCase_					(   __lowerCAmelCase  ,       __lowerCAmelCase  ,       __lowerCAmelCase = 10**-1							)				->   bool:




						'''simple docstring'''



						lowerCamelCase__   =cross(__lowerCAmelCase  ,       __lowerCAmelCase							)
						lowerCamelCase__   =sum(__lowerCAmelCase							)
						return abs(__lowerCAmelCase							) < eps


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

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

	assert in_static_equilibrium(forces, location)

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

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

	assert in_static_equilibrium(forces, location)

	# Problem in image_data/2D_problems_1.jpg
	a				=array([[0, -2000], [0, -1200], [0, 1_5600], [0, -1_2400]])

	a				=array([[0, 0], [6, 0], [10, 0], [12, 0]])

	assert in_static_equilibrium(forces, location)

	import doctest

	doctest.testmod()


