


'''simple docstring'''



import math
from collections.abc import Callable




def 			_a			(		_lowercase      :			Callable[[float], float]    ,      _lowercase      :			float    ,      _lowercase      :			float						):





     '''simple docstring'''






     __UpperCAmelCase			:				float													=    xa
     __UpperCAmelCase			:				float													=    xa
     while True:
          if x_n == x_na or function(_lowercase						) == function(_lowercase						):
               raise ZeroDivisionError('''float division by zero, could not find root'''						)
          __UpperCAmelCase			:				float													=    x_na - (
              function(_lowercase						) / ((function(_lowercase						) - function(_lowercase						)) / (x_na - x_n))
          )
          if abs(x_na - x_na						) < 10**-5:
               return x_na
          __UpperCAmelCase			:				Tuple													=    x_na
          __UpperCAmelCase			:				Optional[int]													=    x_na




def 			_a			(		_lowercase      :			float						):





     '''simple docstring'''






     return math.pow(_lowercase    ,      3						) - (2 * x) - 5


if __name__ == "__main__":
      print(intersection(f, 3, 3.5))



'''simple docstring'''



def 			_a			(		_lowercase      :			list[list[int]]    ,      _lowercase      :			int    ,      _lowercase      :			int    ,      _lowercase      :			set						):





     '''simple docstring'''






     __UpperCAmelCase							,     __UpperCAmelCase			:				Any													=    len(_lowercase						), len(grid[0]						)
     if (
         min(_lowercase    ,      _lowercase						) < 0
         or row == row_length
         or col == col_length
         or (row, col) in visit
         or grid[row][col] == 1
     ):
          return 0
     if row == row_length - 1 and col == col_length - 1:
          return 1

     visit.add((row, col)						)

     __UpperCAmelCase			:				Optional[Any]													=    0
     count += depth_first_search(_lowercase    ,      row + 1    ,      _lowercase    ,      _lowercase						)
     count += depth_first_search(_lowercase    ,      row - 1    ,      _lowercase    ,      _lowercase						)
     count += depth_first_search(_lowercase    ,      _lowercase    ,      col + 1    ,      _lowercase						)
     count += depth_first_search(_lowercase    ,      _lowercase    ,      col - 1    ,      _lowercase						)

     visit.remove((row, col)						)
     return count


if __name__ == "__main__":
      import doctest

      doctest.testmod()