




'''simple docstring'''





import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
a		:  Any   			=			abspath(join(dirname(dirname(dirname(__file__))), '''src'''))
sys.path.insert(1, git_repo_path)


# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action='''ignore''', category=FutureWarning)





def UpperCAmelCase						(					UpperCAmelCase_	):
    from diffusers.utils.testing_utils import pytest_addoption_shared

    pytest_addoption_shared(UpperCAmelCase_	)





def UpperCAmelCase						(					UpperCAmelCase_	):
    from diffusers.utils.testing_utils import pytest_terminal_summary_main

    _a							:       Optional[int]       					=			terminalreporter.config.getoption("""--make-reports"""	)
    if make_reports:
        pytest_terminal_summary_main(UpperCAmelCase_      ,  id=UpperCAmelCase_	)








'''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)}""")


