




from math import exp



def 							_A   (						lowerCAmelCase_     :					float			):
     """simple docstring"""

     return 8 * x - 2 * exp(-x			)



def 							_A   (						lowerCAmelCase_     :					float   ,				lowerCAmelCase_     :					float   ,				lowerCAmelCase_     :					int			):
     """simple docstring"""

     lowerCAmelCase__		= lower_bound
     lowerCAmelCase__		= upper_bound
     for _ in range(0   ,				__UpperCamelCase			):
          lowerCAmelCase__	,		lowerCAmelCase__		= xa, xa - (f(__UpperCamelCase			) * (xa - xa)) / (f(__UpperCamelCase			) - f(__UpperCamelCase			))
     return xa


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






from __future__ import annotations




def 					SCREAMING_SNAKE_CASE	(       __UpperCamelCase			:						list[int | float]      )  ->							int | float:
    if len(__UpperCamelCase      ) == 0:
        raise ValueError('''find_max() arg is an empty sequence'''      )
    UpperCAmelCase_							 =     nums[0]
    for x in nums:
        if x > max_num:
            UpperCAmelCase_							 =     x
    return max_num


if __name__ == "__main__":
 import doctest

 doctest.testmod(verbose=True)





