
'''simple docstring'''



import numpy as np


def A				(__lowerCamelCase				:Union[str, Any]			,     __lowerCamelCase				:Optional[Any]			,     __lowerCamelCase				:Tuple			,     __lowerCamelCase				:Union[str, Any]			,     __lowerCamelCase				:str		):
						_lowerCAmelCase  						=			int(np.ceil((x_end - xa) / h		)		)
						_lowerCAmelCase  						=			np.zeros((n + 1,)		)
						_lowerCAmelCase  						=			ya
						_lowerCAmelCase  						=			xa

						for k in range(snake_case_		):
												_lowerCAmelCase  						=			f(snake_case_			,     y[k]		)
												_lowerCAmelCase  						=			f(x + 0.5 * h			,     y[k] + 0.5 * h * ka		)
												_lowerCAmelCase  						=			f(x + 0.5 * h			,     y[k] + 0.5 * h * ka		)
												_lowerCAmelCase  						=			f(x + h			,     y[k] + h * ka		)
												_lowerCAmelCase  						=			y[k] + (1 / 6) * h * (ka + 2 * ka + 2 * ka + ka)
												x += h

						return y


if __name__ == "__main__":
						import doctest

						doctest.testmod()


'''simple docstring'''



from typing import TYPE_CHECKING

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


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


try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						_lowercase    =		[
						    """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

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