peval or polyEval takes as argument a polynomial p given by the list of its coefficients and a real a . peval or polyEval returns the exact or numeric value of p(a) using Horner’s method. Input :
Output :
Then :
Input :