11.1.12 Polynomial evaluation
The peval or
polyEval
command evaluates polynomials.
-
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
normal(sqrt(2)*sqrt(2)-1) |