






import argparse


snake_case    :						Tuple  =						"docs/source/_static/js/custom.js"
def 	snake_case__       (					__lowercase       )		->		Tuple:







						"""simple docstring"""

						with open(_A							,     encoding="utf-8"							,     newline="\n"       ) as f:
												A__	:							Tuple						    = f.readlines()
						A__	:							str						    = 0

						# First let's put the right version
						while not lines[index].startswith("const stableVersion ="       ):
												index += 1
						A__	:							int						    = 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(_A							,     "w"							,     encoding="utf-8"							,     newline="\n"       ) as f:
												f.writelines(_A       )


if __name__ == "__main__":
		snake_case    :						Dict  =						argparse.ArgumentParser()
		parser.add_argument('--version', help='Release version.')
		snake_case    :						Optional[int]  =						parser.parse_args()
		update_custom_js(args.version)




from collections.abc import Callable

import numpy as np
def 	snake_case__       (					__lowercase							,     __lowercase							,     __lowercase							,     __lowercase							,     __lowercase       )		->		np.array:







						"""simple docstring"""

						A__	:							Any						    = int(np.ceil((x_end - xa) / step_size       )       )
						A__	:							Union[str, Any]						    = np.zeros((n + 1,)       )
						A__	:							Any						    = ya
						A__	:							Union[str, Any]						    = xa

						for k in range(__lowercase       ):
												A__	:							Any						    = y[k] + step_size * ode_func(__lowercase							,     y[k]       )
												A__	:							Any						    = y[k] + (
												    (step_size / 2) * (ode_func(__lowercase							,     y[k]       ) + ode_func(x + step_size							,     __lowercase       ))
												)
												x += step_size

						return y


if __name__ == "__main__":
		import doctest

		doctest.testmod()