There is a `polynom' package by Bill Venables to do this. See our book
`S Programming' for its description, and the web site
http://www.stats.ox.ac.uk/pub/MASS3/Sprog
for the software.
On Wed, 24 Mar 2004, hedhili leila wrote:
> 1. How we can define in s-plus a polynomial of degree n : 1+x+x^2+.....+x^n.
> x don't take a particular value.
> 2. And then how we can expand : (1+x+x^2+.....+x^n)^m
> Example :
> (1+x+x^2)^4=1+4x+10x^2+16x^3+19x^4+16x^5+10x^6+4x^7+x^8.
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
|