from collections.abc import Callable

__SCREAMING_SNAKE_CASE						:    Dict     = Callable[[float], float]  # type alias for a real -> real function
def 					snake_case						(__lowercase					,			__lowercase					,			__lowercase					,			)       ->       List[Any]:

						'''simple docstring'''



						_snake_case						:     str				=    float(lowerCamelCase_						)
						while True:
												try:
																		_snake_case						:     Optional[Any]				=    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
												_snake_case						:     List[Any]				=    next_guess
def 					snake_case						(__lowercase						)       ->       int:

						'''simple docstring'''



						return (x**3) - (2 * x) - 5
def 					snake_case						(__lowercase						)       ->       List[Any]:

						'''simple docstring'''



						return 3 * (x**2) - 2


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


def 					_lowerCamelCase    (      lowerCamelCase_					:							str   ):



     """simple docstring"""





     UpperCAmelCase_							:   str   =      str(lowerCamelCase_   ).strip()
     if not oct_string:
          raise ValueError('Empty string was passed to the function'   )
     UpperCAmelCase_							:   Tuple   =      oct_string[0] == '-'
     if is_negative:
          UpperCAmelCase_							:   Tuple   =      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_							:   str   =      0
     for char in oct_string:
          UpperCAmelCase_							:   List[Any]   =      8 * decimal_number + int(lowerCamelCase_   )
     if is_negative:
          UpperCAmelCase_							:   List[Any]   =      -decimal_number
     return decimal_number


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

 testmod()






