






"""simple docstring"""



import math
from decimal import Decimal, getcontext




def       snake_case__		(   _SCREAMING_SNAKE_CASE = 4_0_0_0_0_0_0			)    ->int:

 try:
  UpperCAmelCase__ 						=				int(_SCREAMING_SNAKE_CASE			)
 except (TypeError, ValueError):
  raise TypeError("""Parameter n must be int or castable to int."""			)
 if n <= 0:
  raise ValueError("""Parameter n must be greater than or equal to one."""			)
 UpperCAmelCase__ 						=				1_0_0
 UpperCAmelCase__ 						=				(Decimal(5			) ** Decimal(0.5			) + 1) / Decimal(2			)

 UpperCAmelCase__ 						=				(math.floor(math.log(n * (phi + 2)       ,	_SCREAMING_SNAKE_CASE			) - 1			) // 3) * 3 + 2
 UpperCAmelCase__ 						=				Decimal(round(phi ** Decimal(index + 1			)			)			) / (phi + 2)
 UpperCAmelCase__ 						=				num // 2
 return int(_SCREAMING_SNAKE_CASE			)


if __name__ == "__main__":
 print(F'''{solution() = }''')











"""simple docstring"""



from math import exp




def       snake_case__		(   _SCREAMING_SNAKE_CASE			)    ->float:
 return 8 * x - 2 * exp(-x			)




def       snake_case__		(   _SCREAMING_SNAKE_CASE       ,	_SCREAMING_SNAKE_CASE       ,	_SCREAMING_SNAKE_CASE			)    ->float:
 UpperCAmelCase__ 						=				lower_bound
 UpperCAmelCase__ 						=				upper_bound
 for _ in range(0       ,	_SCREAMING_SNAKE_CASE			):
  UpperCAmelCase__						,	UpperCAmelCase__ 						=				xa, xa - (f(_SCREAMING_SNAKE_CASE			) * (xa - xa)) / (f(_SCREAMING_SNAKE_CASE			) - f(_SCREAMING_SNAKE_CASE			))
 return xa


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



