def __call__(self, x):
        """\
Evaluate the polynomial for the given value using the Horner scheme.

>>> SimplePolynomial()(1)
1
"""
        result = 0
        for c in reversed(self.terms):
            result = result * x + c
        return result
Evaluate the polynomial for the given value using the Horner scheme.

>>> SimplePolynomial()(1)
1

recipes/Python/576953_Simple_polynomial_class/recipe-576953.py