import math


def EvalPoly(x, poly):
  """
  Evaluation a polynomial at the supplied point
  """
  
  # Naiive implementation will do for now
  val = 0.0
  for i, coeff in enumerate(poly):
    val += coeff * math.pow(x, len(poly) - i - 1)
    
  return val