

'''simple docstring'''

import math
from collections.abc import Callable





def    A_  ( snake_case      ,       snake_case      ,       snake_case ):
  SCREAMING_SNAKE_CASE:float						      =					xa
  SCREAMING_SNAKE_CASE:float						      =					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" )
    SCREAMING_SNAKE_CASE:float						      =					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
    SCREAMING_SNAKE_CASE:Dict						      =					x_na
    SCREAMING_SNAKE_CASE:int						      =					x_na





def    A_  ( snake_case ):
  return math.pow(snake_case      ,       3 ) - (2 * x) - 5


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



'''simple docstring'''

def    A_  ( snake_case ):
  SCREAMING_SNAKE_CASE:Dict						      =					(1 + 24 * n) ** 0.5
  return ((1 + root) / 6) % 1 == 0





def    A_  ( snake_case = 5000 ):
  SCREAMING_SNAKE_CASE:int						      =					[(i * (3 * i - 1)) // 2 for i in range(1      ,       snake_case )]
  for i, pentagonal_i in enumerate(snake_case ):
    for j in range(snake_case      ,       len(snake_case ) ):
      SCREAMING_SNAKE_CASE:int						      =					pentagonal_nums[j]
      SCREAMING_SNAKE_CASE:Any						      =					pentagonal_i + pentagonal_j
      SCREAMING_SNAKE_CASE:int						      =					pentagonal_j - pentagonal_i
      if is_pentagonal(snake_case ) and is_pentagonal(snake_case ):
        return b

  return -1


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






