




from __future__ import annotations

import sys


def 							__SCREAMING_SNAKE_CASE						(    snake_case_		):

						'''simple docstring'''


						if n < 0:
												raise ValueError("Negative arguments are not supported"		)
						return _fib(snake_case_		)[0]


def 							__SCREAMING_SNAKE_CASE						(    snake_case_		):

						'''simple docstring'''


						if n == 0:  # (F(0), F(1))
												return (0, 1)

						# F(2n) = F(n)[2F(n+1) − F(n)]
						# F(2n+1) = F(n+1)^2+F(n)^2
						_UpperCAmelCase							,				_UpperCAmelCase									=  _fib(n // 2		)
						_UpperCAmelCase									=  a * (b * 2 - a)
						_UpperCAmelCase									=  a * a + b * b
						return (d, c + d) if n % 2 else (c, d)


if __name__ == "__main__":
				lowercase_			:       List[Any]						       =				int(sys.argv[1])
				print(f"""fibonacci({n}) is {fibonacci(n)}""")










from math import exp


def 							__SCREAMING_SNAKE_CASE						(    snake_case_		):

						'''simple docstring'''


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


def 							__SCREAMING_SNAKE_CASE						(    snake_case_			,					snake_case_			,					snake_case_		):

						'''simple docstring'''


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


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




