def get_polynomial_func(coefficients):
    """ Returns a function that computes the polynomial. """
    def f(x):
        total = 0.0
        for i, coef in enumerate(coefficients):
            total += coef * x ** i
        return total
    return f