<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def poly_curve(x, *a):
 """ Arbitrary dimension polynomial. """

    output = 0.0
    for n in range(0, len(a)):
        output += a[n]*x**n
    return output