Mercurial > hg > octave-lyh
diff scripts/polynomial/polyvalm.m @ 3368:a4cd1e9d9962
[project @ 1999-11-20 17:22:48 by jwe]
author | jwe |
---|---|
date | Sat, 20 Nov 1999 17:23:01 +0000 |
parents | 44d82b369c78 |
children | f8dde1807dee |
line wrap: on
line diff
--- a/scripts/polynomial/polyvalm.m +++ b/scripts/polynomial/polyvalm.m @@ -17,22 +17,17 @@ ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA ## 02111-1307, USA. -## usage: polyvalm (c, x) -## +## -*- texinfo -*- +## @deftypefn {Function File} {} polyvalm (@var{c}, @var{x}) ## Evaluate a polynomial in the matrix sense. -## -## In octave, a polynomial is represented by it's coefficients (arranged -## in descending order). For example a vector c of length n+1 corresponds -## to the following nth order polynomial -## -## p(x) = c(1) x^n + ... + c(n) x + c(n+1). -## -## polyvalm(c,X) will evaluate the polynomial in the matrix sense, i.e. matrix -## multiplication is used instead of element by element multiplication as is -## used in polyval. -## -## X must be a square matrix. -## +## +## @code{polyvalm (@var{c}, @var{x})} will evaluate the polynomial in the +## matrix sense, i.e. matrix multiplication is used instead of element by +## element multiplication as is used in polyval. +## +## The argument @var{x} must be a square matrix. +## @end deftypefn + ## SEE ALSO: polyval, poly, roots, conv, deconv, residue, filter, ## polyderiv, polyinteg