horner takes two arguments: a polynomial P given by its symbolic expression or by the list of its coefficients and a number a. horner returns P(a) computed using Horner’s method. Input:
^
or :
Output: