Mercurial > hg > octave-lyh
diff scripts/polynomial/poly.m @ 9051:1bf0ce0930be
Grammar check TexInfo in all .m files
Cleanup documentation sources to follow a few consistent rules.
Spellcheck was NOT done. (but will be in another changeset)
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Fri, 27 Mar 2009 22:31:03 -0700 |
parents | eb63fbe60fab |
children | 16f53d29049f |
line wrap: on
line diff
--- a/scripts/polynomial/poly.m +++ b/scripts/polynomial/poly.m @@ -24,10 +24,12 @@ ## the characteristic polynomial of @var{a}. As an example we can use ## this to find the eigenvalues of @var{a} as the roots of @code{poly (@var{a})}. ## @example +## @group ## roots(poly(eye(3))) ## @result{} 1.00000 + 0.00000i ## @result{} 1.00000 - 0.00000i ## @result{} 1.00000 + 0.00000i +## @end group ## @end example ## In real-life examples you should, however, use the @code{eig} function ## for computing eigenvalues.