

from math import exp


def 			__UpperCamelCase    (lowerCAmelCase					:  float     )     ->  float:
      return 8 * x - 2 * exp(-x     )


def 			__UpperCamelCase    (lowerCAmelCase					:  float,    lowerCAmelCase					:  float,    lowerCAmelCase					:  int     )     ->  float:
      A    =				lower_bound
      A    =				upper_bound
      for _ in range(0,    lowerCAmelCase     ):
            A ,	A    =				xa, xa - (f(lowerCAmelCase     ) * (xa - xa)) / (f(lowerCAmelCase     ) - f(lowerCAmelCase     ))
      return xa


if __name__ == "__main__":
  print(F'''Example: {secant_method(1, 3, 2)}''')






from ..utils import requires_backends


_UpperCAmelCase    	=			None



class        _UpperCAmelCase :
  '''simple docstring'''







  def __init__( self	: List[str]		,						*UpperCamelCase__	: str		,						**UpperCamelCase__	: Any ):
        requires_backends(self		,						['detectron2'] )







  @classmethod
  def 	UpperCamelCase       ( cls	: Dict		,						*UpperCamelCase__	: Tuple		,						**UpperCamelCase__	: List[Any] ):
        requires_backends(cls		,						['detectron2'] )



