


"""simple docstring"""







from collections.abc import Callable

import numpy as np




def      UpperCAmelCase__ (lowerCAmelCase_						,		lowerCAmelCase_						,		lowerCAmelCase_						,		lowerCAmelCase_						,		lowerCAmelCase_     ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE		     =       int(np.ceil((x_end - xa) / step_size     )     )
					__SCREAMING_SNAKE_CASE		     =       np.zeros((n + 1,)     )
					__SCREAMING_SNAKE_CASE		     =       ya
					__SCREAMING_SNAKE_CASE		     =       xa

					for k in range(lowerCAmelCase_     ):
										__SCREAMING_SNAKE_CASE		     =       y[k] + step_size * ode_func(lowerCAmelCase_						,		y[k]     )
										__SCREAMING_SNAKE_CASE		     =       y[k] + (
										    (step_size / 2) * (ode_func(lowerCAmelCase_						,		y[k]     ) + ode_func(x + step_size						,		lowerCAmelCase_     ))
										)
										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__       :							List[str]        =  {}


try:
		if not is_sentencepiece_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		a__       :							int        =  ['''MLukeTokenizer''']

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


else:
		import sys

		a__       :							Optional[Any]        =  _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)
