def compute_polynomial(coefficients, value):
    """
    Horner's method of computation for polynomial functions.
    Returns the result of a polynomial function given as coefficients vector 'coefficients' for value 'value'.
    :param coefficients: vector of coefficients. ex: [3, 2, 1, 0] for polynomial function
    f(x) = 3*(x**3) + 2*(x**2) + 1*(x**1) + 0*(x**0)
    :param value: number
    :return result: the result of polynomial function f(x) in which x = value
    """
    result = None
    for coefficient in coefficients:
        if not result:
            result = coefficient
        else:
            result *= value
            result += coefficient
    return result