


"""simple docstring"""

def lowerCAmelCase_      (				UpperCamelCase__	: Any				,   UpperCamelCase__	: int ):






 """simple docstring"""







 __lowercase									=	(boundary[1] - boundary[0]) / steps
 __lowercase									=	boundary[0]
 __lowercase									=	boundary[1]
 __lowercase									=	make_points(UpperCamelCase__				,   UpperCamelCase__				,   UpperCamelCase__ )
 __lowercase									=	0.0
 y += (h / 2.0) * f(UpperCamelCase__ )
 for i in x_i:
  # print(i)
  y += h * f(UpperCamelCase__ )
 y += (h / 2.0) * f(UpperCamelCase__ )
 return y


def lowerCAmelCase_      (				UpperCamelCase__	: Tuple				,   UpperCamelCase__	: Tuple				,   UpperCamelCase__	: Dict ):






 """simple docstring"""







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


def lowerCAmelCase_      (				UpperCamelCase__	: List[Any] ):  # enter your function here






 """simple docstring"""







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


def lowerCAmelCase_      (				):






 """simple docstring"""







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


if __name__ == "__main__":
       main()




"""simple docstring"""

from typing import TYPE_CHECKING

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


UpperCAmelCase__  							={"configuration_van": ["VAN_PRETRAINED_CONFIG_ARCHIVE_MAP", "VanConfig"]}


try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       UpperCAmelCase__  							=[
           "VAN_PRETRAINED_MODEL_ARCHIVE_LIST",
           "VanForImageClassification",
           "VanModel",
           "VanPreTrainedModel",
       ]

if TYPE_CHECKING:
       from .configuration_van import VAN_PRETRAINED_CONFIG_ARCHIVE_MAP, VanConfig

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_van import (
                  VAN_PRETRAINED_MODEL_ARCHIVE_LIST,
                  VanForImageClassification,
                  VanModel,
                  VanPreTrainedModel,
              )

else:
       import sys

       UpperCAmelCase__  							=_LazyModule(__name__, globals()["__file__"], _import_structure)
