def poly5(p):
    """
    Function which returns another function to evaluate a polynomial.
    """

    C5, C4, C3, C2, C1, C0 = p
    def rfunc(x):
        y = C5*x**5.0 + C4*x**4.0 + C3*x**3.0 + C2*x**2.0 + C1*x + C0
        return y
    return rfunc