




def 						lowerCamelCase__   (		_A					,     _A							):







	'''simple docstring'''





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


def 						lowerCamelCase__   (		_A					,     _A					,     _A							):







	'''simple docstring'''





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


def 						lowerCamelCase__   (		_A							):  # enter your function here







	'''simple docstring'''





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


def 						lowerCamelCase__   (		):







	'''simple docstring'''





	snake_case_		   =					0.0  # Lower bound of integration
	snake_case_		   =					1.0  # Upper bound of integration
	snake_case_		   =					10.0  # define number of steps or resolution
	snake_case_		   =					[a, b]  # define boundary of integration
	snake_case_		   =					method_a(_A					,     _A							)
	print(f"y = {y}"							)


if __name__ == "__main__":
		main()











from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available, is_torch_available


lowercase__    :					List[str]					=						{
    "configuration_xlm_prophetnet": ["XLM_PROPHETNET_PRETRAINED_CONFIG_ARCHIVE_MAP", "XLMProphetNetConfig"],
}

try:
		if not is_sentencepiece_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		lowercase__    :					Optional[Any]					=						["XLMProphetNetTokenizer"]

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		lowercase__    :					List[Any]					=						[
		    "XLM_PROPHETNET_PRETRAINED_MODEL_ARCHIVE_LIST",
		    "XLMProphetNetDecoder",
		    "XLMProphetNetEncoder",
		    "XLMProphetNetForCausalLM",
		    "XLMProphetNetForConditionalGeneration",
		    "XLMProphetNetModel",
		    "XLMProphetNetPreTrainedModel",
		]


if TYPE_CHECKING:
		from .configuration_xlm_prophetnet import XLM_PROPHETNET_PRETRAINED_CONFIG_ARCHIVE_MAP, XLMProphetNetConfig

		try:
				if not is_sentencepiece_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .tokenization_xlm_prophetnet import XLMProphetNetTokenizer

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_xlm_prophetnet import (
				    XLM_PROPHETNET_PRETRAINED_MODEL_ARCHIVE_LIST,
				    XLMProphetNetDecoder,
				    XLMProphetNetEncoder,
				    XLMProphetNetForCausalLM,
				    XLMProphetNetForConditionalGeneration,
				    XLMProphetNetModel,
				    XLMProphetNetPreTrainedModel,
				)

else:
		import sys

		lowercase__    :					Any					=						_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
