def to_equation(coefficients):
    """
    Takes the coefficients of a polynomial and creates a function of
    time from them.
    """
    def f(t):
        total = 0.0

        for i, c in enumerate(coefficients):
            total += c * t ** i

        return total

    return f