


def SCREAMING_SNAKE_CASE	(			__lowerCAmelCase							,   __lowerCAmelCase							,   __lowerCAmelCase				)    ->				list:
  snake_case__						= len(__lowerCAmelCase				)
  snake_case__						= [[0] * n for i in range(__lowerCAmelCase				)]
  for i in range(__lowerCAmelCase				):
    snake_case__						= y_points[i]

  for i in range(2							,   __lowerCAmelCase				):
    for j in range(__lowerCAmelCase							,   __lowerCAmelCase				):
      snake_case__						= (
          (xa - x_points[j - i + 1]) * q[j][i - 1]
          - (xa - x_points[j]) * q[j - 1][i - 1]
      ) / (x_points[j] - x_points[j - i + 1])

  return [q[n - 1][n - 1], q]


if __name__ == "__main__":
   import doctest

   doctest.testmod()





import numpy as np







def SCREAMING_SNAKE_CASE	(			__lowerCAmelCase				)    ->				np.ndarray:
  return 1 / (1 + np.exp(-vector				))







def SCREAMING_SNAKE_CASE	(			__lowerCAmelCase				)    ->				np.ndarray:
  return vector * sigmoid(__lowerCAmelCase				)


if __name__ == "__main__":
   import doctest

   doctest.testmod()

