Representing Polynomials

MATLAB® software represents polynomials as row vectors containing coefficients ordered by descending powers. For example, consider the equation


This is the celebrated example Wallis used when he first represented Newton's method to the French Academy. To enter this polynomial into MATLAB, use

p = [1 0 -2 -5];
Was this topic helpful?