Mercurial > hg > octave-lyh
diff scripts/polynomial/poly.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | 614505385171 |
line wrap: on
line diff
--- a/scripts/polynomial/poly.m +++ b/scripts/polynomial/poly.m @@ -21,8 +21,8 @@ ## @deftypefnx {Function File} {} poly (@var{x}) ## If @var{A} is a square @math{N}-by-@math{N} matrix, @code{poly (@var{A})} ## is the row vector of the coefficients of @code{det (z * eye (N) - A)}, -## the characteristic polynomial of @var{A}. For example, -## the following code finds the eigenvalues of @var{A} which are the roots of +## the characteristic polynomial of @var{A}. For example, +## the following code finds the eigenvalues of @var{A} which are the roots of ## @code{poly (@var{A})}. ## ## @example @@ -34,13 +34,13 @@ ## @end group ## @end example ## -## In fact, all three eigenvalues are exactly 1 which emphasizes that for +## In fact, all three eigenvalues are exactly 1 which emphasizes that for ## numerical performance the @code{eig} function should be used to compute ## eigenvalues. ## ## If @var{x} is a vector, @code{poly (@var{x})} is a vector of the coefficients ## of the polynomial whose roots are the elements of @var{x}. That is, -## if @var{c} is a polynomial, then the elements of +## if @var{c} is a polynomial, then the elements of ## @code{@var{d} = roots (poly (@var{c}))} are contained in @var{c}. ## The vectors @var{c} and @var{d} are not identical, however, due to sorting ## and numerical errors.