



def  _lowerCAmelCase     (_lowerCAmelCase):
					UpperCamelCase_			= str(_lowerCAmelCase).strip()
					if not oct_string:
										raise ValueError("Empty string was passed to the function")
					UpperCamelCase_			= oct_string[0] == "-"
					if is_negative:
										UpperCamelCase_			= oct_string[1:]
					if not oct_string.isdigit() or not all(0 <= int(_lowerCAmelCase) <= 7 for char in oct_string):
										raise ValueError("Non-octal value was passed to the function")
					UpperCamelCase_			= 0
					for char in oct_string:
										UpperCamelCase_			= 8 * decimal_number + int(_lowerCAmelCase)
					if is_negative:
										UpperCamelCase_			= -decimal_number
					return decimal_number


if __name__ == "__main__":
	from doctest import testmod

	testmod()

from collections.abc import Callable

_SCREAMING_SNAKE_CASE     =     Callable[[float], float]  # type alias for a real -> real function
def 					__lowercase						(    lowerCamelCase__			,					lowerCamelCase__			,					lowerCamelCase__			,					)					->float:

  '''simple docstring'''




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

  '''simple docstring'''




  return (x**3) - (2 * x) - 5
def 					__lowercase						(    lowerCamelCase__       )					->float:

  '''simple docstring'''




  return 3 * (x**2) - 2


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

