
"""simple docstring"""

import numpy as np
def 		UpperCAmelCase (		a_,						a_,						a_,						a_,						a_      ):





		'''simple docstring'''


		lowerCamelCase					:      Tuple          =   int(np.ceil((x_end - xa) / h      )      )
		lowerCamelCase					:      List[str]          =   np.zeros((n + 1,)      )
		lowerCamelCase					:      List[str]          =   ya
		lowerCamelCase					:      str          =   xa

		for k in range(a_      ):
				lowerCamelCase					:      List[str]          =   f(a_,						y[k]      )
				lowerCamelCase					:      Dict          =   f(x + 0.5 * h,						y[k] + 0.5 * h * ka      )
				lowerCamelCase					:      Optional[int]          =   f(x + 0.5 * h,						y[k] + 0.5 * h * ka      )
				lowerCamelCase					:      Union[str, Any]          =   f(x + h,						y[k] + h * ka      )
				lowerCamelCase					:      List[Any]          =   y[k] + (1 / 6) * h * (ka + 2 * ka + 2 * ka + ka)
				x += h

		return y


if __name__ == "__main__":
					import doctest

					doctest.testmod()








"""simple docstring"""

import os
import sys
from contextlib import contextmanager


# Windows only
if os.name == "nt":
					import ctypes
					import msvcrt  # noqa






					class 	_lowercase       (    ctypes.Structure		):
						# _fields is a specific attr expected by ctypes
						lowercase_				=     [('size', ctypes.c_int), ('visible', ctypes.c_byte)]
def 		UpperCAmelCase (		):





		'''simple docstring'''


		if os.name == "nt":
				lowerCamelCase					:      Optional[int]          =   CursorInfo()
				lowerCamelCase					:      Union[str, Any]          =   ctypes.windll.kernelaa.GetStdHandle(-11      )
				ctypes.windll.kernelaa.GetConsoleCursorInfo(a_,						ctypes.byref(a_      )      )
				lowerCamelCase					:      Dict          =   False
				ctypes.windll.kernelaa.SetConsoleCursorInfo(a_,						ctypes.byref(a_      )      )
		elif os.name == "posix":
				sys.stdout.write('\033[?25l'      )
				sys.stdout.flush()
def 		UpperCAmelCase (		):





		'''simple docstring'''


		if os.name == "nt":
				lowerCamelCase					:      List[str]          =   CursorInfo()
				lowerCamelCase					:      List[Any]          =   ctypes.windll.kernelaa.GetStdHandle(-11      )
				ctypes.windll.kernelaa.GetConsoleCursorInfo(a_,						ctypes.byref(a_      )      )
				lowerCamelCase					:      Optional[Any]          =   True
				ctypes.windll.kernelaa.SetConsoleCursorInfo(a_,						ctypes.byref(a_      )      )
		elif os.name == "posix":
				sys.stdout.write('\033[?25h'      )
				sys.stdout.flush()





@contextmanager
def 		UpperCAmelCase (		):





		'''simple docstring'''


		try:
				hide_cursor()
				yield
		finally:
				show_cursor()






