(self, x)
return theSum
Evaluate a polynomial at an input point.

        Uses Horner's method, first discovered by Persian mathematician
        Sharaf al-Dīn al-Ṭūsī, which evaluates a polynomial by minimizing
        the number of multiplications.
Evaluate a polynomial at an input point.
Evaluate a polynomial at an input point .
def evaluate_at(self, x):
        '''Evaluate a polynomial at an input point.

        Uses Horner's method, first discovered by Persian mathematician
        Sharaf al-Dīn al-Ṭūsī, which evaluates a polynomial by minimizing
        the number of multiplications.
        '''
        theSum = 0

        for c in reversed(self.coefficients):
            theSum = theSum * x + c

        return theSum
def evaluate_at ( self , x ) : theSum = 0 for c in reversed ( self . coefficients ) : theSum = theSum * x + c return theSum