


"""simple docstring"""

from ..utils import DummyObject, requires_backends





class    lowerCamelCase__						(		metaclass=_a    ):
      a :     List[Any]											=		["""transformers""", """torch""", """note_seq"""]
      def __init__(		self	:	Optional[Any]      ,       *A_	:	int      ,       **A_	:	List[str]							):






       '''simple docstring'''


       requires_backends(self      ,       ["""transformers""", """torch""", """note_seq"""]							)
      @classmethod
      def SCREAMING_SNAKE_CASE_	(		cls	:	Dict      ,       *A_	:	int      ,       **A_	:	str							):






       '''simple docstring'''


       requires_backends(cls      ,       ["""transformers""", """torch""", """note_seq"""]							)






      @classmethod
      def SCREAMING_SNAKE_CASE_	(		cls	:	List[str]      ,       *A_	:	int      ,       **A_	:	Tuple							):






       '''simple docstring'''


       requires_backends(cls      ,       ["""transformers""", """torch""", """note_seq"""]							)




"""simple docstring"""

from collections.abc import Callable

import numpy as np


def lowerCAmelCase_      (				UpperCamelCase__	: Callable				,   UpperCamelCase__	: float				,   UpperCamelCase__	: float				,   UpperCamelCase__	: float				,   UpperCamelCase__	: float ):






 """simple docstring"""







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

 for k in range(UpperCamelCase__ ):
  __lowercase									=	y[k] + step_size * ode_func(UpperCamelCase__				,   y[k] )
  x += step_size

 return y


if __name__ == "__main__":
       import doctest

       doctest.testmod()
