


'''simple docstring'''

from collections.abc import Callable

__lowercase:		List[str]    						=  Callable[[float], float]  # type alias for a real -> real function



def 							SCREAMING_SNAKE_CASE__(		_UpperCamelCase   :					RealFunc     ,		_UpperCamelCase   :					RealFunc     ,		_UpperCamelCase   :					int     ,		)		->       float:





   '''simple docstring'''







   UpperCamelCase__			    =    float(_UpperCamelCase )
   while True:
      try:
         UpperCamelCase__			    =    prev_guess - function(_UpperCamelCase ) / derivative(_UpperCamelCase )
      except ZeroDivisionError:
         raise ZeroDivisionError("Could not find root" ) from None
      if abs(prev_guess - next_guess ) < 10**-5:
         return next_guess
      UpperCamelCase__			    =    next_guess



def 							SCREAMING_SNAKE_CASE__(		_UpperCamelCase   :					float )		->       float:





   '''simple docstring'''







   return (x**3) - (2 * x) - 5



def 							SCREAMING_SNAKE_CASE__(		_UpperCamelCase   :					float )		->       float:





   '''simple docstring'''







   return 3 * (x**2) - 2


if __name__ == "__main__":
       print(newton(f, fa, 3))
from transformers import ProcessorMixin






class     __UpperCAmelCase(    A__				):






 """simple docstring"""




 __magic_name__          =   """AutoFeatureExtractor"""
 __magic_name__          =   """AutoTokenizer"""


