"""simple docstring"""


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




						'''simple docstring'''



						lowerCamelCase__					=(boundary[1] - boundary[0]) / steps
						lowerCamelCase__					=boundary[0]
						lowerCamelCase__					=boundary[1]
						lowerCamelCase__					=make_points(__lowerCAmelCase   ,    __lowerCAmelCase   ,    __lowerCAmelCase				)
						lowerCamelCase__					=0.0
						y += (h / 3.0) * f(__lowerCAmelCase				)
						lowerCamelCase__					=2
						for i in x_i:
												y += (h / 3) * (4 - 2 * (cnt % 2)) * f(__lowerCAmelCase				)
												cnt += 1
						y += (h / 3.0) * f(__lowerCAmelCase				)
						return y





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




						'''simple docstring'''



						lowerCamelCase__					=a + h
						while x < (b - h):
												yield x
												lowerCamelCase__					=x + h





def 			lowerCamelCase_ (					__lowerCAmelCase				)							->					Optional[int]:  # enter your function here




						'''simple docstring'''



						lowerCamelCase__					=(x - 0) * (x - 0)
						return y





def 			lowerCamelCase_ (					)							->					Any:




						'''simple docstring'''



						lowerCamelCase__					=0.0  # Lower bound of integration
						lowerCamelCase__					=1.0  # Upper bound of integration
						lowerCamelCase__					=10.0  # define number of steps or resolution
						lowerCamelCase__					=[a, b]  # define boundary of integration
						lowerCamelCase__					=method_a(__lowerCAmelCase   ,    __lowerCAmelCase				)
						print(F'''y = {y}'''				)


if __name__ == "__main__":
	main()





import importlib.metadata
import subprocess
import sys





def 	snake_case_      (__A     :						bool = False     )			->	str:
   __lowerCAmelCase  :			Any					    =						False
   if "IPython" in sys.modules:
      __lowerCAmelCase  :			Optional[int]					    =						"""google.colab""" in str(sys.modules["""IPython"""].get_ipython()     )

   if in_colab:
      if upgrade:
         __lowerCAmelCase  :			int					    =						["""pip""", """install""", """-U""", """torch"""]
         subprocess.run(__A					,   check=__A     )
      # get the current version of torch
      __lowerCAmelCase  :			List[Any]					    =						importlib.metadata.version("""torch"""     )
      __lowerCAmelCase  :			List[Any]					    =						torch_version[: torch_version.rindex("""."""     )]
      __lowerCAmelCase  :			int					    =						f'''https://storage.googleapis.com/tpu-pytorch/wheels/colab/torch_xla-{torch_version_trunc}-cp37-cp37m-linux_x86_64.whl'''
      __lowerCAmelCase  :			List[Any]					    =						["""pip""", """install""", xla_wheel]
      subprocess.run(__A					,   check=__A     )
   else:
      raise RuntimeError("""`install_xla` utility works only on google colab."""     )


