


'''simple docstring'''

def lowerCamelCase      (      lowerCAmelCase    :     list[list[int]]		,		lowerCAmelCase    :     int		,		lowerCAmelCase    :     int		,		lowerCAmelCase    :     set		):





	"""simple docstring"""







	__magic_name__     ,    __magic_name__	:   Tuple					     =					len(lowerCAmelCase		), len(grid[0]		)
	if (
	    min(lowerCAmelCase		,		lowerCAmelCase		) < 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)		)

	__magic_name__	:   Any					     =					0
	count += depth_first_search(lowerCAmelCase		,		row + 1		,		lowerCAmelCase		,		lowerCAmelCase		)
	count += depth_first_search(lowerCAmelCase		,		row - 1		,		lowerCAmelCase		,		lowerCAmelCase		)
	count += depth_first_search(lowerCAmelCase		,		lowerCAmelCase		,		col + 1		,		lowerCAmelCase		)
	count += depth_first_search(lowerCAmelCase		,		lowerCAmelCase		,		col - 1		,		lowerCAmelCase		)

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


if __name__ == "__main__":
							import doctest

							doctest.testmod()



'''simple docstring'''

import math





def lowerCamelCase      (      lowerCAmelCase    :     float		,		lowerCAmelCase    :     float		):





	"""simple docstring"""







	return math.pow(lowerCAmelCase		,		2		) - a





def lowerCamelCase      (      lowerCAmelCase    :     float		):





	"""simple docstring"""







	return 2 * x





def lowerCamelCase      (      lowerCAmelCase    :     float		):





	"""simple docstring"""







	__magic_name__	:   List[Any]					     =					2.0

	while start <= a:
		__magic_name__	:   List[str]					     =					math.pow(lowerCAmelCase		,		2		)

	return start





def lowerCamelCase      (      lowerCAmelCase    :     float		,		lowerCAmelCase    :     int = 9999		,		lowerCAmelCase    :     float = 0.00_0000_0000_0001		):





	"""simple docstring"""







	if a < 0:
		raise ValueError('math domain error'		)

	__magic_name__	:   Any					     =					get_initial_point(lowerCAmelCase		)

	for _ in range(lowerCAmelCase		):
		__magic_name__	:   List[str]					     =					value
		__magic_name__	:   Optional[int]					     =					value - fx(lowerCAmelCase		,		lowerCAmelCase		) / fx_derivative(lowerCAmelCase		)
		if abs(prev_value - value		) < tolerance:
			return value

	return value


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

							testmod()