
'''simple docstring'''

from math import exp







def __A  (    lowerCAmelCase_       ):
     return 8 * x - 2 * exp(-x       )







def __A  (    lowerCAmelCase_ ,       lowerCAmelCase_ ,       lowerCAmelCase_       ):
     _UpperCAmelCase					:  Optional[Any]         =    lower_bound
     _UpperCAmelCase					:  Union[str, Any]         =    upper_bound
     for _ in range(0 ,       lowerCAmelCase_       ):
          _UpperCAmelCase  ,     _UpperCAmelCase					:  List[str]         =    xa, xa - (f(lowerCAmelCase_       ) * (xa - xa)) / (f(lowerCAmelCase_       ) - f(lowerCAmelCase_       ))
     return xa


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




'''simple docstring'''

import unittest

from transformers import is_torch_available, load_tool

from .test_tools_common import ToolTesterMixin


if is_torch_available():
   import torch







class 	__lowerCAmelCase    (  unittest.TestCase       ,					__a				):



     def     snake_case_ (self	):
          _UpperCAmelCase					:  Tuple         =    load_tool("""speech-to-text"""	)
          self.tool.setup()



     def     snake_case_ (self	):
          _UpperCAmelCase					:  str         =    self.tool(torch.ones(3_0_0_0	)	)
          self.assertEqual(lowerCAmelCase__						,	""" you"""	)



     def     snake_case_ (self	):
          _UpperCAmelCase					:  Union[str, Any]         =    self.tool(audio=torch.ones(3_0_0_0	)	)
          self.assertEqual(lowerCAmelCase__						,	""" you"""	)


