6.27.12 Evaluating polynomials: peval polyEval
The peval command evaluates polynomials.
polyEval is a synonym for peval.
-
peval takes two arguments:
-
P, a polynomial given by the list of its
coefficients.
- a, a real number.
- peval(P,a) returns the exact
or numeric value of P(a), calculated using Horner’s method.
Examples.