from collections.abc import Callable

import numpy as np






def     lowerCAmelCase_			(   _SCREAMING_SNAKE_CASE     :				str		, _SCREAMING_SNAKE_CASE     :				Dict		, _SCREAMING_SNAKE_CASE     :				List[Any]		, _SCREAMING_SNAKE_CASE     :				int		, _SCREAMING_SNAKE_CASE     :				List[str]			):
						UpperCamelCase_		:							int  =		int(np.ceil((x_end - xa) / step_size			)			)
						UpperCamelCase_		:							Optional[int]  =		np.zeros((n + 1,)			)
						UpperCamelCase_		:							Dict  =		ya
						UpperCamelCase_		:							Dict  =		xa

						for k in range(_SCREAMING_SNAKE_CASE			):
												UpperCamelCase_		:							Any  =		y[k] + step_size * ode_func(_SCREAMING_SNAKE_CASE		, y[k]			)
												UpperCamelCase_		:							int  =		y[k] + (
												    (step_size / 2) * (ode_func(_SCREAMING_SNAKE_CASE		, y[k]			) + ode_func(x + step_size		, _SCREAMING_SNAKE_CASE			))
												)
												x += step_size

						return y


if __name__ == "__main__":
	import doctest

	doctest.testmod()









"""simple docstring"""
from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available


_A							=  {}

try:
    if not is_sentencepiece_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    _A							=  ["""BartphoTokenizer"""]

if TYPE_CHECKING:
    try:
        if not is_sentencepiece_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .tokenization_bartpho import BartphoTokenizer

else:
    import sys

    _A							=  _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)

