






"""simple docstring"""



import math
from collections.abc import Callable
def 						_SCREAMING_SNAKE_CASE (    __snake_case			:  Callable[[float], float]		,					__snake_case			:  float		,					__snake_case			:  float    ):





  '''simple docstring'''





  lowercase							    =       xa
  lowercase							    =       xa
  while True:
    if x_n == x_na or function(__snake_case    ) == function(__snake_case    ):
      raise ZeroDivisionError('float division by zero, could not find root'    )
    lowercase							    =       x_na - (
        function(__snake_case    ) / ((function(__snake_case    ) - function(__snake_case    )) / (x_na - x_n))
    )
    if abs(x_na - x_na    ) < 10**-5:
      return x_na
    lowercase							    =       x_na
    lowercase							    =       x_na
def 						_SCREAMING_SNAKE_CASE (    __snake_case			:  float    ):





  '''simple docstring'''





  return math.pow(__snake_case		,					3    ) - (2 * x) - 5


if __name__ == "__main__":
    print(intersection(f, 3, 3.5))










"""simple docstring"""



def 						_SCREAMING_SNAKE_CASE (    __snake_case			:  int = 1_00    ):





  '''simple docstring'''





  lowercase							    =       0
  lowercase							    =       0
  for i in range(1		,					n + 1    ):
    sum_of_squares += i**2
    sum_of_ints += i
  return sum_of_ints**2 - sum_of_squares


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


