




'''simple docstring'''





from __future__ import annotations





def UpperCAmelCase						(					UpperCAmelCase_	):
    _a							:       List[str]       					=			sorted(UpperCAmelCase_	)
    _a							:       str       					=			len(UpperCAmelCase_	)
    _a							:       List[Any]       					=			length >> 1
    return (
        (sorted_list[mid_index] + sorted_list[mid_index - 1]) / 2
        if length % 2 == 0
        else sorted_list[mid_index]
    )





def UpperCAmelCase						(					):
    import doctest

    doctest.testmod()


if __name__ == "__main__":
  main()








'''simple docstring'''





from math import exp





def UpperCAmelCase						(					UpperCAmelCase_	):
    return 8 * x - 2 * exp(-x	)





def UpperCAmelCase						(					UpperCAmelCase_      ,  UpperCAmelCase_      ,  UpperCAmelCase_	):
    _a							:       Optional[int]       					=			lower_bound
    _a							:       str       					=			upper_bound
    for _ in range(0      ,  UpperCAmelCase_	):
        _a					,   _a							:       List[str]       					=			xa, xa - (f(UpperCAmelCase_	) * (xa - xa)) / (f(UpperCAmelCase_	) - f(UpperCAmelCase_	))
    return xa


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


