
'''simple docstring'''
from collections.abc import Callable

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







def 							A_  (    __SCREAMING_SNAKE_CASE    :	RealFunc      ,  __SCREAMING_SNAKE_CASE    :	RealFunc      ,  __SCREAMING_SNAKE_CASE    :	int      ,  )					->							int:





  """simple docstring"""

  __A		:  Any       				=		float(__UpperCamelCase			)
  while True:
    try:
      __A		:  str       				=		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
    __A		:  List[str]       				=		next_guess







def 							A_  (    __SCREAMING_SNAKE_CASE    :	float			)					->							Optional[int]:





  """simple docstring"""

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







def 							A_  (    __SCREAMING_SNAKE_CASE    :	float			)					->							int:





  """simple docstring"""

  return 3 * (x**2) - 2


if __name__ == "__main__":
     print(newton(f, fa, 3))






"""simple docstring"""






from typing import Callable
def 		A_	(   __UpperCamelCase     :				Callable				):

		def wrapper(__UpperCamelCase     :				Optional[Any]				):
				lowercase										=							function_with_docstring.__doc__
				return target_function

		return wrapper