'''simple docstring'''




def 	UpperCamelCase_							(					_UpperCAmelCase  :      Dict    )    ->    Union[str, Any]:


       """simple docstring"""







       return 10 - x * x

def 	UpperCamelCase_							(					_UpperCAmelCase  :      str			,	_UpperCAmelCase  :      Tuple    )    ->    Dict:


       """simple docstring"""







       if equation(_UpperCAmelCase    ) * equation(_UpperCAmelCase    ) >= 0:
              raise ValueError("Wrong space!"    )

       _UpperCAmelCase     :  Dict							      =    a
       while (b - a) >= 0.0_1:
              # Find middle point
              _UpperCAmelCase     :  Any							      =    (a + b) / 2
              # Check if middle point is root
              if equation(_UpperCAmelCase    ) == 0.0:
                     break
              # Decide the side to repeat the steps
              if equation(_UpperCAmelCase    ) * equation(_UpperCAmelCase    ) < 0:
                     _UpperCAmelCase     :  int							      =    c
              else:
                     _UpperCAmelCase     :  List[Any]							      =    c
       return c


if __name__ == "__main__":
  import doctest

  doctest.testmod()

  print(bisection(-2, 5))
  print(bisection(0, 6))







import torch



def 					UpperCAmelCase__     (   ):
  if torch.cuda.is_available():
    lowercase			:Optional[int]							=  torch.cuda.device_count()
  else:
    lowercase			:Dict							=  0
  print(F"Successfully ran on {num_gpus} GPUs"      )


if __name__ == "__main__":
     main()



