"""simple docstring"""


import numpy as np






def 			__UpperCAmelCase    (	lowercase      ,lowercase      ,lowercase      ,lowercase      ,lowercase						):







  """simple docstring"""
  _UpperCAmelCase         =					int(np.ceil((x_end - xa) / h						)						)
  _UpperCAmelCase         =					np.zeros((n + 1,)						)
  _UpperCAmelCase         =					ya
  _UpperCAmelCase         =					xa

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

  return y


if __name__ == "__main__":
    import doctest

    doctest.testmod()

"""simple docstring"""


import warnings


warnings.warn(
    """memory_utils has been reorganized to utils.memory. Import `find_executable_batchsize` from the main `__init__`: """
    """`from accelerate import find_executable_batch_size` to avoid this warning.""",
    FutureWarning,
)
