s-news
[Top] [All Lists]

Re: formal polynomials (was no subject)

To: hedhili leila <hedhilileila@yahoo.fr>
Subject: Re: formal polynomials (was no subject)
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Wed, 24 Mar 2004 09:22:28 +0000 (GMT)
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <20040324083315.87636.qmail@web25203.mail.ukl.yahoo.com>
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


<Prev in Thread] Current Thread [Next in Thread>
  • [no subject], hedhili leila
    • Re: formal polynomials (was no subject), Prof Brian Ripley <=