



'''simple docstring'''





import numpy as np

def        a_     (							_lowerCAmelCase       )      ->      np.ndarray:
  return 1 / (1 + np.exp(-vector       ))

def        a_     (							_lowerCAmelCase       )      ->      np.ndarray:
  return vector * sigmoid(_lowerCAmelCase       )


if __name__ == "__main__":
   import doctest

   doctest.testmod()











'''simple docstring'''





from collections.abc import Sequence

def        a_     (							_lowerCAmelCase       ,_lowerCAmelCase       )      ->      float:
  return sum(c * (x**i) for i, c in enumerate(_lowerCAmelCase       )       )

def        a_     (							_lowerCAmelCase       ,_lowerCAmelCase       )      ->      float:
  __lowerCamelCase       :       Any           = 0.0
  for coeff in reversed(_lowerCAmelCase       ):
    __lowerCamelCase       :       Tuple           = result * x + coeff
  return result


if __name__ == "__main__":
   _UpperCamelCase											=						(0.0, 0.0, 5.0, 9.3, 7.0)
   _UpperCamelCase											=						1_0.0
   print(evaluate_poly(poly, x))
   print(horner(poly, x))






