Mercurial > octave-nkf
comparison examples/@polynomial/polynomial.m @ 14093:050bc580cb60 stable
doc: Various docstring improvements before 3.6.0 release.
* NEWS, aspell-octave.en.pws, intro.txi, oop.txi, testfun.txi, tips.txi,
FIRfilter.m, FIRfilter_aggregation.m, polynomial.m, polynomial_superiorto.m,
usejava.m, pcg.m, pcr.m, nchoosek.m, validatestring.m, assert.m, weekday.m,
cellfun.cc, error.cc, strfns.cc: Various docstring improvements before 3.6.0
release.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 21 Dec 2011 19:46:57 -0800 |
parents | 567e3e4ab74d |
children |
comparison
equal
deleted
inserted
replaced
14092:22c50cbad2ce | 14093:050bc580cb60 |
---|---|
1 ## -*- texinfo -*- | 1 ## -*- texinfo -*- |
2 ## @deftypefn {Function File} {} polynomial () | 2 ## @deftypefn {Function File} {} polynomial () |
3 ## @deftypefnx {Function File} {} polynomial (@var{a}) | 3 ## @deftypefnx {Function File} {} polynomial (@var{a}) |
4 ## Creates a polynomial object representing the polynomial | 4 ## Create a polynomial object representing the polynomial |
5 ## | 5 ## |
6 ## @example | 6 ## @example |
7 ## a0 + a1 * x + a2 * x^2 + @dots{} + an * x^n | 7 ## a0 + a1 * x + a2 * x^2 + @dots{} + an * x^n |
8 ## @end example | 8 ## @end example |
9 ## | 9 ## |
10 ## from a vector of coefficients [a0 a1 a2 ... an]. | 10 ## @noindent |
11 ## from a vector of coefficients [a0 a1 a2 @dots{} an]. | |
11 ## @end deftypefn | 12 ## @end deftypefn |
12 | 13 |
13 function p = polynomial (a) | 14 function p = polynomial (a) |
14 if (nargin == 0) | 15 if (nargin == 0) |
15 p.poly = [0]; | 16 p.poly = [0]; |